CVE-2025-38212: ipc: fix to protect IPCS lookups using RCU
In the Linux kernel, the following vulnerability has been resolved:
ipc: fix to protect IPCS lookups using RCU
syzbot reported that it discovered a use-after-free vulnerability, [0]
[0]: https://lore.kernel.org/all/67af13f8.050a0220.21dd3.0038.GAE@google.com/
idr_for_each() is protected by rwsem, but this is not enough. If it is
not protected by RCU read-critical region, when idr_for_each() calls
radix_tree_node_free() through call_rcu() to free the radix_tree_node
structure, the node will be freed immediately, and when reading the next
node in radix_tree_for_each_slot(), the already freed memory may be read.
Therefore, we need to add code to make sure that idr_for_each() is
protected within the RCU read-critical region when we call it in
shm_destroy_orphaned().
Security readout for executives and security teams
Plain-English summary
A Linux kernel race can access memory after it has been freed while cleaning up orphaned shared-memory objects. A local, low-privileged user may be able to trigger it without user interaction, potentially affecting confidentiality, integrity, or availability. The supplied evidence does not establish practical exploitation.
Executive priority
Treat as a high-priority kernel update, especially on shared systems, developer platforms, and container hosts running untrusted workloads. It is less urgent for systems without meaningful local access, but should remain in normal expedited patching because successful memory corruption could have severe consequences.
Technical view
The flaw occurs in shm_destroy_orphaned() when idr_for_each() traverses IPC identifiers without an RCU read-side critical section. A radix-tree node can be released through call_rcu(), allowing traversal to read freed memory. Stable-kernel commits add the required RCU protection.
Likely exposure
Exposure is limited to systems running affected Linux kernels where an untrusted or compromised local account can reach the relevant System V shared-memory cleanup path. The supplied version data is ambiguous, so confirm exposure using distribution package advisories and stable-kernel commit ancestry rather than version strings alone.
Exploitation context
The CVSS vector describes a local, low-complexity attack requiring low privileges and no user interaction. Discovery came from syzbot testing. The bundle marks this CVE as absent from KEV, and no supplied source confirms active exploitation, a public exploit, or demonstrated privilege escalation.
Researcher notes
Evidence supports a race-driven use-after-free in Linux IPC identifier traversal and a narrow RCU-protection fix. CVSS scores potential confidentiality, integrity, and availability impact as high, but the supplied sources do not demonstrate reliable exploitation or a specific security outcome. Distribution backports may make upstream version comparisons unreliable.
Mitigation direction
Install the vendor-supported kernel package containing the CVE-2025-38212 correction.
Reboot into the updated kernel after installation.
Prioritize multi-user systems and workloads permitting untrusted local code execution.
If updates cannot be applied promptly, request temporary mitigation guidance from the Linux distribution vendor.
Validation and detection
Inventory running kernel versions across physical hosts, virtual machines, and container hosts.
Compare installed packages with applicable distribution security advisories.
Verify the running kernel includes the relevant stable-kernel correction or backport.
Confirm systems booted the updated kernel after remediation.
Review local access and untrusted workload exposure while remediation remains pending.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2025-38212 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
2ADP providers
12Source links
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.