CVE-2026-52930

ipc/shm: serialize orphan cleanup with shm_nattch updates

MEDIUM
5.5
CVSS Score
Published: June 24, 2026 at 07:14 AM UTC
Updated: October 15, 2026 at 02:19 AM UTC
4 products affected across 2 vendorsLinux KernelSIMATIC S7-1500 CPU 1518-4 Pn /dp MFP FirmwareSiplus 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
MEDIUM5.5
Exploit prediction
EPSS 0.1%

Description

In the Linux kernel, the following vulnerability has been resolved: ipc/shm: serialize orphan cleanup with shm_nattch updates shm_destroy_orphaned() walks the shm idr under shm_ids(ns).rwsem, but that does not serialize all fields tested by shm_may_destroy(). In particular, shm_nattch is updated while holding shm_perm.lock, and attach paths can do that without holding the rwsem. Do not decide that an orphaned segment is unused before taking the object lock. Move the shm_may_destroy() check under shm_perm.lock, matching the other destroy paths, and unlock the segment when it no longer qualifies for removal.

Affected

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

3.1 ≤ v < 5.10.2595.11 ≤ v < 5.15.2105.16 ≤ v < 6.1.1766.13 ≤ v < 6.18.366.19 ≤ v < 7.0.136.2 ≤ v < 6.6.1436.7 ≤ v < 6.12.944c677e2eefdba9c5bfc4474e2e91b26ae8458a1d7.17.1 rc17.1 rc27.1 rc37.1 rc47.1 rc57.1 rc67.1 rc7
Vendor states this is fixed in 030bbc857bd51d4b25a90d931d3f8775ef22823a (fixed)
Vendor states this is fixed in 1f0d01e35dbb228084d5187212e32c91a30dcbeb (fixed)
Vendor states this is fixed in 2e5c6f4fd4001562781e99bbfc7f1f0127187542 (fixed)
Vendor states this is fixed in 6560be3f6a5bb84f006f184f0c966747bb58e1a3 (fixed)
Vendor states this is fixed in 92cda2593cf2ed25b0e9d78e5e6d8303bba1a064 (fixed)
Vendor states this is fixed in b1e9aef48e4d8a0c1b54fb913077b0824ed7d650 (fixed)
Vendor states this is fixed in b5107b4ce3ad45fcf369ee2058c8910620f4b5a8 (fixed)
Vendor states this is fixed in db752ebfdaf2c7f27cd9690ef48b616af068319c (fixed)
Vendor states this is fixed in 3.1 (unaffected)
Vendor states this is fixed in 5.10.259 (unaffected)
Vendor states this is fixed in 5.15.210 (unaffected)
Vendor states this is fixed in 6.1.176 (unaffected)
Vendor states this is fixed in 6.12.94 (unaffected)
Vendor states this is fixed in 6.18.36 (unaffected)
Vendor states this is fixed in 6.6.143 (unaffected)
Vendor states this is fixed in 7.0.13 (unaffected)
Vendor states this is fixed in 7.1 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

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