CVE-2025-38544

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-38544
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38544.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38544
Downstream
Related
Published
2025-08-16T11:22:18Z
Modified
2025-10-18T04:55:22.778180Z
Summary
rxrpc: Fix bug due to prealloc collision
Details

In the Linux kernel, the following vulnerability has been resolved:

rxrpc: Fix bug due to prealloc collision

When userspace is using AF_RXRPC to provide a server, it has to preallocate incoming calls and assign to them call IDs that will be used to thread related recvmsg() and sendmsg() together. The preallocated call IDs will automatically be attached to calls as they come in until the pool is empty.

To the kernel, the call IDs are just arbitrary numbers, but userspace can use the call ID to hold a pointer to prepared structs. In any case, the user isn't permitted to create two calls with the same call ID (call IDs become available again when the call ends) and EBADSLT should result from sendmsg() if an attempt is made to preallocate a call with an in-use call ID.

However, the cleanup in the error handling will trigger both assertions in rxrpccleanupcall() because the call isn't marked complete and isn't marked as having been released.

Fix this by setting the call state in rxrpcserviceprealloc_one() and then marking it as being released before calling the cleanup function.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
00e907127e6f86d0f9b122d9b4347a8aa09a8b61
Fixed
432c5363cd6fe5a928bbc94524d28b05515684dd
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
00e907127e6f86d0f9b122d9b4347a8aa09a8b61
Fixed
5385ad53793de2ab11e396bdcdaa65bb04b4dad6
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
00e907127e6f86d0f9b122d9b4347a8aa09a8b61
Fixed
d8ffb47a443919277cb093c3db1ec6c0a06880b1
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
00e907127e6f86d0f9b122d9b4347a8aa09a8b61
Fixed
69e4186773c6445b258fb45b6e1df18df831ec45

Affected versions

v4.*

v4.10
v4.10-rc1
v4.10-rc2
v4.10-rc3
v4.10-rc4
v4.10-rc5
v4.10-rc6
v4.10-rc7
v4.10-rc8
v4.11
v4.11-rc1
v4.11-rc2
v4.11-rc3
v4.11-rc4
v4.11-rc5
v4.11-rc6
v4.11-rc7
v4.11-rc8
v4.12
v4.12-rc1
v4.12-rc2
v4.12-rc3
v4.12-rc4
v4.12-rc5
v4.12-rc6
v4.12-rc7
v4.13
v4.13-rc1
v4.13-rc2
v4.13-rc3
v4.13-rc4
v4.13-rc5
v4.13-rc6
v4.13-rc7
v4.14
v4.14-rc1
v4.14-rc2
v4.14-rc3
v4.14-rc4
v4.14-rc5
v4.14-rc6
v4.14-rc7
v4.14-rc8
v4.15
v4.15-rc1
v4.15-rc2
v4.15-rc3
v4.15-rc4
v4.15-rc5
v4.15-rc6
v4.15-rc7
v4.15-rc8
v4.15-rc9
v4.16
v4.16-rc1
v4.16-rc2
v4.16-rc3
v4.16-rc4
v4.16-rc5
v4.16-rc6
v4.16-rc7
v4.17
v4.17-rc1
v4.17-rc2
v4.17-rc3
v4.17-rc4
v4.17-rc5
v4.17-rc6
v4.17-rc7
v4.18
v4.18-rc1
v4.18-rc2
v4.18-rc3
v4.18-rc4
v4.18-rc5
v4.18-rc6
v4.18-rc7
v4.18-rc8
v4.19
v4.19-rc1
v4.19-rc2
v4.19-rc3
v4.19-rc4
v4.19-rc5
v4.19-rc6
v4.19-rc7
v4.19-rc8
v4.20
v4.20-rc1
v4.20-rc2
v4.20-rc3
v4.20-rc4
v4.20-rc5
v4.20-rc6
v4.20-rc7
v4.8
v4.8-rc5
v4.8-rc6
v4.8-rc7
v4.8-rc8
v4.9
v4.9-rc1
v4.9-rc2
v4.9-rc3
v4.9-rc4
v4.9-rc5
v4.9-rc6
v4.9-rc7
v4.9-rc8

v5.*

v5.0
v5.0-rc1
v5.0-rc2
v5.0-rc3
v5.0-rc4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.6.63
v6.6.64
v6.6.65
v6.6.66
v6.6.67
v6.6.68
v6.6.69
v6.6.7
v6.6.70
v6.6.71
v6.6.72
v6.6.73
v6.6.74
v6.6.75
v6.6.76
v6.6.77
v6.6.78
v6.6.79
v6.6.8
v6.6.80
v6.6.81
v6.6.82
v6.6.83
v6.6.84
v6.6.85
v6.6.86
v6.6.87
v6.6.88
v6.6.89
v6.6.9
v6.6.90
v6.6.91
v6.6.92
v6.6.93
v6.6.94
v6.6.95
v6.6.96
v6.6.97
v6.6.98
v6.7
v6.7-rc1
v6.7-rc2
v6.7-rc3
v6.7-rc4
v6.7-rc5
v6.7-rc6
v6.7-rc7
v6.7-rc8
v6.8
v6.8-rc1
v6.8-rc2
v6.8-rc3
v6.8-rc4
v6.8-rc5
v6.8-rc6
v6.8-rc7
v6.9
v6.9-rc1
v6.9-rc2
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7

Database specific

vanir_signatures

[
    {
        "target": {
            "function": "rxrpc_service_prealloc_one",
            "file": "net/rxrpc/call_accept.c"
        },
        "id": "CVE-2025-38544-04c56554",
        "signature_type": "Function",
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@432c5363cd6fe5a928bbc94524d28b05515684dd",
        "digest": {
            "function_hash": "120303602423162752748862122663700766244",
            "length": 2920.0
        }
    },
    {
        "target": {
            "file": "net/rxrpc/call_accept.c"
        },
        "id": "CVE-2025-38544-0d6117f7",
        "signature_type": "Line",
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@432c5363cd6fe5a928bbc94524d28b05515684dd",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "256349170463011742809792178513980412310",
                "193133171293976581071949996920427047358",
                "298638804384952041937965493243558312543",
                "119175390619128866199946288774059149405"
            ]
        }
    },
    {
        "target": {
            "file": "net/rxrpc/call_accept.c"
        },
        "id": "CVE-2025-38544-1edc0b57",
        "signature_type": "Line",
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@69e4186773c6445b258fb45b6e1df18df831ec45",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "256349170463011742809792178513980412310",
                "193133171293976581071949996920427047358",
                "298638804384952041937965493243558312543",
                "119175390619128866199946288774059149405"
            ]
        }
    },
    {
        "target": {
            "file": "net/rxrpc/call_accept.c"
        },
        "id": "CVE-2025-38544-5c1b700f",
        "signature_type": "Line",
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5385ad53793de2ab11e396bdcdaa65bb04b4dad6",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "256349170463011742809792178513980412310",
                "193133171293976581071949996920427047358",
                "298638804384952041937965493243558312543",
                "119175390619128866199946288774059149405"
            ]
        }
    },
    {
        "target": {
            "function": "rxrpc_service_prealloc_one",
            "file": "net/rxrpc/call_accept.c"
        },
        "id": "CVE-2025-38544-5d1aacc0",
        "signature_type": "Function",
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5385ad53793de2ab11e396bdcdaa65bb04b4dad6",
        "digest": {
            "function_hash": "120303602423162752748862122663700766244",
            "length": 2920.0
        }
    },
    {
        "target": {
            "function": "rxrpc_service_prealloc_one",
            "file": "net/rxrpc/call_accept.c"
        },
        "id": "CVE-2025-38544-e9a7b9be",
        "signature_type": "Function",
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@69e4186773c6445b258fb45b6e1df18df831ec45",
        "digest": {
            "function_hash": "64488535634756411262463177074607044245",
            "length": 2979.0
        }
    },
    {
        "target": {
            "file": "net/rxrpc/call_accept.c"
        },
        "id": "CVE-2025-38544-ea6824ce",
        "signature_type": "Line",
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d8ffb47a443919277cb093c3db1ec6c0a06880b1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "256349170463011742809792178513980412310",
                "193133171293976581071949996920427047358",
                "298638804384952041937965493243558312543",
                "119175390619128866199946288774059149405"
            ]
        }
    },
    {
        "target": {
            "function": "rxrpc_service_prealloc_one",
            "file": "net/rxrpc/call_accept.c"
        },
        "id": "CVE-2025-38544-ec22fe17",
        "signature_type": "Function",
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d8ffb47a443919277cb093c3db1ec6c0a06880b1",
        "digest": {
            "function_hash": "120303602423162752748862122663700766244",
            "length": 2920.0
        }
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.9.0
Fixed
6.6.99
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.39
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.15.7