Skip to content
Heist/ feed
High

rxrpc: Fix recv-recv race of completed call

Type: advisorySource: Official CVE List1 source record

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.

Announced Group revision 1
Original source ↗

CVE-2025-38524

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2025-38524

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "248f219cb8bcbfbd7f132752d44afa2df7c241d1",
        "lessThan": "4aed0eeca58e26d752bb08b293b8dc75c6820b23",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "248f219cb8bcbfbd7f132752d44afa2df7c241d1",
        "lessThan": "7692bde890061797f3dece0148d7859e85c55778",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "248f219cb8bcbfbd7f132752d44afa2df7c241d1",
        "lessThan": "839fe96c15209dc2255c064bb44b636efe04f032",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "248f219cb8bcbfbd7f132752d44afa2df7c241d1",
        "lessThan": "6c75a97a32a5fa2060c3dd30207e63b6914b606d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "248f219cb8bcbfbd7f132752d44afa2df7c241d1",
        "lessThan": "962fb1f651c2cf2083e0c3ef53ba69e3b96d3fbc",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "include/trace/events/rxrpc.h",
      "net/rxrpc/call_accept.c",
      "net/rxrpc/recvmsg.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "4.9"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "4.9",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.10.266",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.100",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.40",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.15.8",
        "versionType": "semver",
        "lessThanOrEqual": "6.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.16",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "include/trace/events/rxrpc.h",
      "net/rxrpc/call_accept.c",
      "net/rxrpc/recvmsg.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-38524

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#30588 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement