# CVE-2025-38544: rxrpc: Fix bug due to prealloc collision

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2025-08-16T11:22:18.541Z
- Modified: 2026-11-05T22:17:17.837Z
- Weaknesses: CWE-617
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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
rxrpc_cleanup_call() because the call isn't marked complete and isn't
marked as having been released.

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

(As written by CVE List.)

## Affected

- Linux Linux: from 00e907127e6f86d0f9b122d9b4347a8aa09a8b61 before 3838acfc347b803b66a2c8eb510da1c489d44ca1; from 00e907127e6f86d0f9b122d9b4347a8aa09a8b61 before 432c5363cd6fe5a928bbc94524d28b05515684dd; from 00e907127e6f86d0f9b122d9b4347a8aa09a8b61 before 5385ad53793de2ab11e396bdcdaa65bb04b4dad6; from 00e907127e6f86d0f9b122d9b4347a8aa09a8b61 before d8ffb47a443919277cb093c3db1ec6c0a06880b1; from 00e907127e6f86d0f9b122d9b4347a8aa09a8b61 before 69e4186773c6445b258fb45b6e1df18df831ec45; 4.9 (not affected: before 4.9; from 6.1.191 up to 6.1.*; from 6.6.99 up to 6.6.*; from 6.12.39 up to 6.12.*; from 6.15.7 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 4.9 before 6.6.99; from 6.7 before 6.12.39; from 6.13 before 6.15.7; 6.16

## References

- <https://git.kernel.org/stable/c/3838acfc347b803b66a2c8eb510da1c489d44ca1>
- <https://git.kernel.org/stable/c/432c5363cd6fe5a928bbc94524d28b05515684dd> (patch)
- <https://git.kernel.org/stable/c/5385ad53793de2ab11e396bdcdaa65bb04b4dad6> (patch)
- <https://git.kernel.org/stable/c/d8ffb47a443919277cb093c3db1ec6c0a06880b1> (patch)
- <https://git.kernel.org/stable/c/69e4186773c6445b258fb45b6e1df18df831ec45> (patch)

## Sources

- CVE List: [CVE-2025-38544](https://www.cve.org/CVERecord?id=CVE-2025-38544), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2025-38544](https://nvd.nist.gov/vuln/detail/CVE-2025-38544), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2025-38544 · Whole record: https://cve.day/CVE-2025-38544.json · Rebuilt by cve.day 2026-11-25T22:59:02.637Z
