CVE-2025-38212

ipc: fix to protect IPCS lookups using RCU

HIGH
7.8
CVSS Score
Published: July 4, 2025 at 01:37 PM UTC
Updated: October 15, 2026 at 10:18 PM UTC
5 products affected across 3 vendorsLinux KernelDebian LinuxSIMATIC S7-1500 CPU 1518-4 Pn /dp MFP Firmware

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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/[email protected]/ 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().

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.1 ≤ v < 5.4.2955.11 ≤ v < 5.15.1865.16 ≤ v < 6.1.1425.5 ≤ v < 5.10.2396.13 ≤ v < 6.15.46.2 ≤ v < 6.6.956.7 ≤ v < 6.12.353.1b34a6b1da371ed8af1221459a18c67970f7e3d53
Vendor states this is fixed in 5180561afff8e0f029073c8c8117c95c6512d1f9 (fixed)
Vendor states this is fixed in 5f1e1573bf103303944fd7225559de5d8297539c (fixed)
Vendor states this is fixed in 68c173ea138b66d7dd1fd980c9bc578a18e11884 (fixed)
Vendor states this is fixed in 74bc813d11c30e28fc5261dc877cca662ccfac68 (fixed)
Vendor states this is fixed in 78297d53d3878d43c1d627d20cd09f611fa4b91d (fixed)
Vendor states this is fixed in b0b6bf90ce2699a574b3683e22c44d0dcdd7a057 (fixed)
Vendor states this is fixed in b968ba8bfd9f90914957bbbd815413bf6a98eca7 (fixed)
Vendor states this is fixed in d66adabe91803ef34a8b90613c81267b5ded1472 (fixed)
Vendor states this is fixed in 3.1 (unaffected)
Vendor states this is fixed in 5.10.239 (unaffected)
Vendor states this is fixed in 5.15.186 (unaffected)
Vendor states this is fixed in 5.4.295 (unaffected)
Vendor states this is fixed in 6.1.142 (unaffected)
Vendor states this is fixed in 6.12.35 (unaffected)
Vendor states this is fixed in 6.15.4 (unaffected)
Vendor states this is fixed in 6.16 (unaffected)
Vendor states this is fixed in 6.6.95 (unaffected)

References (11)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5180561afff8e0f029073c8c8117c95c6512d1f9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5f1e1573bf103303944fd7225559de5d8297539c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/68c173ea138b66d7dd1fd980c9bc578a18e11884
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/74bc813d11c30e28fc5261dc877cca662ccfac68
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/78297d53d3878d43c1d627d20cd09f611fa4b91d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b0b6bf90ce2699a574b3683e22c44d0dcdd7a057
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b968ba8bfd9f90914957bbbd815413bf6a98eca7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d66adabe91803ef34a8b90613c81267b5ded1472

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card