CVE-2026-52930
ipc/shm: serialize orphan cleanup with shm_nattch updates
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.
INFO
Published Date :
June 24, 2026, 8:16 a.m.
Last Modified :
July 8, 2026, 3:28 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Apply kernel updates for IPC/SHM race condition.
- Ensure shm_may_destroy checks are under shm_perm.lock.
- Unlock segments that no longer qualify for removal.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-52930.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-52930 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-52930
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-52930 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-52930 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Jul. 08, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.176 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.143 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.210 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.18.36 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.94 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 7.0.13 *cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.1:rc6:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.1:rc7:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.1 up to (excluding) 5.10.259 Added Reference Type kernel.org: https://git.kernel.org/stable/c/030bbc857bd51d4b25a90d931d3f8775ef22823a Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/1f0d01e35dbb228084d5187212e32c91a30dcbeb Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/2e5c6f4fd4001562781e99bbfc7f1f0127187542 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/6560be3f6a5bb84f006f184f0c966747bb58e1a3 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/92cda2593cf2ed25b0e9d78e5e6d8303bba1a064 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/b1e9aef48e4d8a0c1b54fb913077b0824ed7d650 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/b5107b4ce3ad45fcf369ee2058c8910620f4b5a8 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/db752ebfdaf2c7f27cd9690ef48b616af068319c Types: Patch -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 24, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d', 'lessThan': 'b1e9aef48e4d8a0c1b54fb913077b0824ed7d650', 'versionType': 'git'}, {'status': 'affected', 'version': '4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d', 'lessThan': '92cda2593cf2ed25b0e9d78e5e6d8303bba1a064', 'versionType': 'git'}, {'status': 'affected', 'version': '4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d', 'lessThan': '1f0d01e35dbb228084d5187212e32c91a30dcbeb', 'versionType': 'git'}, {'status': 'affected', 'version': '4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d', 'lessThan': '6560be3f6a5bb84f006f184f0c966747bb58e1a3', 'versionType': 'git'}, {'status': 'affected', 'version': '4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d', 'lessThan': 'b5107b4ce3ad45fcf369ee2058c8910620f4b5a8', 'versionType': 'git'}, {'status': 'affected', 'version': '4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d', 'lessThan': 'db752ebfdaf2c7f27cd9690ef48b616af068319c', 'versionType': 'git'}, {'status': 'affected', 'version': '4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d', 'lessThan': '030bbc857bd51d4b25a90d931d3f8775ef22823a', 'versionType': 'git'}, {'status': 'affected', 'version': '4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d', 'lessThan': '2e5c6f4fd4001562781e99bbfc7f1f0127187542', 'versionType': 'git'}], 'programFiles': ['ipc/shm.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '3.1'}, {'status': 'unaffected', 'version': '0', 'lessThan': '3.1', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.259', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.210', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.176', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.143', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.94', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.36', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.0.13', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['ipc/shm.c'], 'defaultStatus': 'affected'}] Added 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. Added Reference https://git.kernel.org/stable/c/030bbc857bd51d4b25a90d931d3f8775ef22823a Added Reference https://git.kernel.org/stable/c/1f0d01e35dbb228084d5187212e32c91a30dcbeb Added Reference https://git.kernel.org/stable/c/2e5c6f4fd4001562781e99bbfc7f1f0127187542 Added Reference https://git.kernel.org/stable/c/6560be3f6a5bb84f006f184f0c966747bb58e1a3 Added Reference https://git.kernel.org/stable/c/92cda2593cf2ed25b0e9d78e5e6d8303bba1a064 Added Reference https://git.kernel.org/stable/c/b1e9aef48e4d8a0c1b54fb913077b0824ed7d650 Added Reference https://git.kernel.org/stable/c/b5107b4ce3ad45fcf369ee2058c8910620f4b5a8 Added Reference https://git.kernel.org/stable/c/db752ebfdaf2c7f27cd9690ef48b616af068319c