# CVE-2025-38524: rxrpc: Fix recv-recv race of completed call

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/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.34%, higher than 29% of CVEs (2026-12-01)
- Published: 2025-08-16T11:12:18.314Z
- Modified: 2026-10-30T13:18:05.443Z
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Linux

## Description

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

rxrpc: Fix recv-recv race of completed call

If a call receives an event (such as incoming data), the call gets placed
on the socket's queue and a thread in recvmsg can be awakened to go and
process it.  Once the thread has picked up the call off of the queue,
further events will cause it to be requeued, and once the socket lock is
dropped (recvmsg uses call->user_mutex to allow the socket to be used in
parallel), a second thread can come in and its recvmsg can pop the call off
the socket queue again.

In such a case, the first thread will be receiving stuff from the call and
the second thread will be blocked on call->user_mutex.  The first thread
can, at this point, process both the event that it picked call for and the
event that the second thread picked the call for and may see the call
terminate - in which case the call will be "released", decoupling the call
from the user call ID assigned to it (RXRPC_USER_CALL_ID in the control
message).

The first thread will return okay, but then the second thread will wake up
holding the user_mutex and, if it sees that the call has been released by
the first thread, it will BUG thusly:

	kernel BUG at net/rxrpc/recvmsg.c:474!

Fix this by just dequeuing the call and ignoring it if it is seen to be
already released.  We can't tell userspace about it anyway as the user call
ID has become stale.

(As written by CVE List.)

## Affected

- Linux Linux: from 248f219cb8bcbfbd7f132752d44afa2df7c241d1 before 4aed0eeca58e26d752bb08b293b8dc75c6820b23; from 248f219cb8bcbfbd7f132752d44afa2df7c241d1 before cb720b068b18fb39c96980eb3c13f09427512be7; from 248f219cb8bcbfbd7f132752d44afa2df7c241d1 before 7692bde890061797f3dece0148d7859e85c55778; from 248f219cb8bcbfbd7f132752d44afa2df7c241d1 before 839fe96c15209dc2255c064bb44b636efe04f032; from 248f219cb8bcbfbd7f132752d44afa2df7c241d1 before 6c75a97a32a5fa2060c3dd30207e63b6914b606d; from 248f219cb8bcbfbd7f132752d44afa2df7c241d1 before 962fb1f651c2cf2083e0c3ef53ba69e3b96d3fbc; 4.9 (not affected: before 4.9; from 5.10.266 up to 5.10.*; from 6.1.191 up to 6.1.*; from 6.6.100 up to 6.6.*; from 6.12.40 up to 6.12.*; from 6.15.8 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 4.9 before 6.6.100; from 6.7 before 6.12.40; from 6.13 before 6.15.8; 6.16

## Every score

- Linux: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/4aed0eeca58e26d752bb08b293b8dc75c6820b23>
- <https://git.kernel.org/stable/c/cb720b068b18fb39c96980eb3c13f09427512be7>
- <https://git.kernel.org/stable/c/7692bde890061797f3dece0148d7859e85c55778> (patch)
- <https://git.kernel.org/stable/c/839fe96c15209dc2255c064bb44b636efe04f032> (patch)
- <https://git.kernel.org/stable/c/6c75a97a32a5fa2060c3dd30207e63b6914b606d> (patch)
- <https://git.kernel.org/stable/c/962fb1f651c2cf2083e0c3ef53ba69e3b96d3fbc> (patch)

## Sources

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

---

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