CVE-2026-52930 (GCVE-0-2026-52930)

Vulnerability from cvelistv5 – Published: 2026-06-24 07:14 – Updated: 2026-06-24 07:14
VLAI
Title
ipc/shm: serialize orphan cleanup with shm_nattch updates
Summary
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.
Severity
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d , < b1e9aef48e4d8a0c1b54fb913077b0824ed7d650 (git)
Affected: 4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d , < 92cda2593cf2ed25b0e9d78e5e6d8303bba1a064 (git)
Affected: 4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d , < 1f0d01e35dbb228084d5187212e32c91a30dcbeb (git)
Affected: 4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d , < 6560be3f6a5bb84f006f184f0c966747bb58e1a3 (git)
Affected: 4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d , < b5107b4ce3ad45fcf369ee2058c8910620f4b5a8 (git)
Affected: 4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d , < db752ebfdaf2c7f27cd9690ef48b616af068319c (git)
Affected: 4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d , < 030bbc857bd51d4b25a90d931d3f8775ef22823a (git)
Affected: 4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d , < 2e5c6f4fd4001562781e99bbfc7f1f0127187542 (git)
Create a notification for this product.
Linux Linux Affected: 3.1
Unaffected: 0 , < 3.1 (semver)
Unaffected: 5.10.259 , ≤ 5.10.* (semver)
Unaffected: 5.15.210 , ≤ 5.15.* (semver)
Unaffected: 6.1.176 , ≤ 6.1.* (semver)
Unaffected: 6.6.143 , ≤ 6.6.* (semver)
Unaffected: 6.12.94 , ≤ 6.12.* (semver)
Unaffected: 6.18.36 , ≤ 6.18.* (semver)
Unaffected: 7.0.13 , ≤ 7.0.* (semver)
Unaffected: 7.1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "ipc/shm.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "b1e9aef48e4d8a0c1b54fb913077b0824ed7d650",
              "status": "affected",
              "version": "4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d",
              "versionType": "git"
            },
            {
              "lessThan": "92cda2593cf2ed25b0e9d78e5e6d8303bba1a064",
              "status": "affected",
              "version": "4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d",
              "versionType": "git"
            },
            {
              "lessThan": "1f0d01e35dbb228084d5187212e32c91a30dcbeb",
              "status": "affected",
              "version": "4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d",
              "versionType": "git"
            },
            {
              "lessThan": "6560be3f6a5bb84f006f184f0c966747bb58e1a3",
              "status": "affected",
              "version": "4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d",
              "versionType": "git"
            },
            {
              "lessThan": "b5107b4ce3ad45fcf369ee2058c8910620f4b5a8",
              "status": "affected",
              "version": "4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d",
              "versionType": "git"
            },
            {
              "lessThan": "db752ebfdaf2c7f27cd9690ef48b616af068319c",
              "status": "affected",
              "version": "4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d",
              "versionType": "git"
            },
            {
              "lessThan": "030bbc857bd51d4b25a90d931d3f8775ef22823a",
              "status": "affected",
              "version": "4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d",
              "versionType": "git"
            },
            {
              "lessThan": "2e5c6f4fd4001562781e99bbfc7f1f0127187542",
              "status": "affected",
              "version": "4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "ipc/shm.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.1"
            },
            {
              "lessThan": "3.1",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.259",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.210",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.176",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.143",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.94",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.36",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.0.*",
              "status": "unaffected",
              "version": "7.0.13",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.259",
                  "versionStartIncluding": "3.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.210",
                  "versionStartIncluding": "3.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.176",
                  "versionStartIncluding": "3.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.143",
                  "versionStartIncluding": "3.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.94",
                  "versionStartIncluding": "3.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.36",
                  "versionStartIncluding": "3.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0.13",
                  "versionStartIncluding": "3.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1",
                  "versionStartIncluding": "3.1",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nipc/shm: serialize orphan cleanup with shm_nattch updates\n\nshm_destroy_orphaned() walks the shm idr under shm_ids(ns).rwsem, but that\ndoes not serialize all fields tested by shm_may_destroy().  In particular,\nshm_nattch is updated while holding shm_perm.lock, and attach paths can do\nthat without holding the rwsem.\n\nDo not decide that an orphaned segment is unused before taking the object\nlock.  Move the shm_may_destroy() check under shm_perm.lock, matching the\nother destroy paths, and unlock the segment when it no longer qualifies\nfor removal."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-06-24T07:14:22.704Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/b1e9aef48e4d8a0c1b54fb913077b0824ed7d650"
        },
        {
          "url": "https://git.kernel.org/stable/c/92cda2593cf2ed25b0e9d78e5e6d8303bba1a064"
        },
        {
          "url": "https://git.kernel.org/stable/c/1f0d01e35dbb228084d5187212e32c91a30dcbeb"
        },
        {
          "url": "https://git.kernel.org/stable/c/6560be3f6a5bb84f006f184f0c966747bb58e1a3"
        },
        {
          "url": "https://git.kernel.org/stable/c/b5107b4ce3ad45fcf369ee2058c8910620f4b5a8"
        },
        {
          "url": "https://git.kernel.org/stable/c/db752ebfdaf2c7f27cd9690ef48b616af068319c"
        },
        {
          "url": "https://git.kernel.org/stable/c/030bbc857bd51d4b25a90d931d3f8775ef22823a"
        },
        {
          "url": "https://git.kernel.org/stable/c/2e5c6f4fd4001562781e99bbfc7f1f0127187542"
        }
      ],
      "title": "ipc/shm: serialize orphan cleanup with shm_nattch updates",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-52930",
    "datePublished": "2026-06-24T07:14:22.704Z",
    "dateReserved": "2026-06-09T07:44:35.369Z",
    "dateUpdated": "2026-06-24T07:14:22.704Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-52930",
      "date": "2026-06-24",
      "epss": "0.00165",
      "percentile": "0.05991"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…