CVE-2026-52930
MEDIUMipc/shm: serialize orphan cleanup with shm_nattch updates
Title source: cnaDescription
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.
References (8)
Core 8
Core References
Scores
CVSS v3
5.5
EPSS
0.0011
EPSS Percentile
1.8%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Details
Status
published
Products (27)
linux/Kernel
3.1.0 - 5.10.259linux
linux/Kernel
5.11.0 - 5.15.210linux
linux/Kernel
5.16.0 - 6.1.176linux
linux/Kernel
6.13.0 - 6.18.36linux
linux/Kernel
6.19.0 - 7.0.13linux
linux/Kernel
6.2.0 - 6.6.143linux
linux/Kernel
6.7.0 - 6.12.94linux
Linux/Linux
< 3.1
Linux/Linux
3.1
Linux/Linux
4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d - 030bbc857bd51d4b25a90d931d3f8775ef22823a
... and 17 more
Published
Jun 24, 2026
Tracked Since
Jun 24, 2026