CVE-2026-52923 (GCVE-0-2026-52923)

Vulnerability from cvelistv5 – Published: 2026-06-24 07:14 – Updated: 2026-06-28 06:36
VLAI
Title
ipc: limit next_id allocation to the valid ID range
Summary
In the Linux kernel, the following vulnerability has been resolved: ipc: limit next_id allocation to the valid ID range The checkpoint/restore sysctl path can request the next SysV IPC id through ids->next_id. ipc_idr_alloc() currently forwards that request to idr_alloc() with an open-ended upper bound. If the valid tail of the SysV IPC id space is full, the allocation can spill beyond ipc_mni. The returned SysV IPC id still uses the normal index encoding, so later lookup and removal can target the wrong slot. This leaves the real IDR entry behind and breaks the IDR state for the object. The bug is in ipc_idr_alloc() in the checkpoint/restore path. 1. ids->next_id is passed to: idr_alloc(&ids->ipcs_idr, new, ipcid_to_idx(next_id), 0, ...) 2. The zero upper bound makes the allocation effectively open-ended. Once the valid SysV IPC tail is occupied, idr_alloc() can spill past ipc_mni and allocate an entry beyond the valid IPC id range. 3. The new object id is still encoded with the narrower SysV IPC index width: new->id = (new->seq << ipcmni_seq_shift()) + idx 4. Later removal goes through ipc_rmid(), which uses: ipcid_to_idx(ipcp->id) That truncates the real IDR index. An object actually stored at a high index can then be removed as if it lived at a low in-range index. 5. For shared memory, shm_destroy() frees the current object anyway, but the real high IDR slot is left behind as a dangling pointer. 6. A subsequent walk of /proc/sysvipc/shm reaches the stale IDR entry and dereferences freed memory. Prevent this by bounding the requested allocation to ipc_mni so the checkpoint/restore path fails once the valid range is exhausted.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 03f595668017f1a1fb971c02fc37140bc6e7bb1c , < 3bbe2bb9111ce6967a951bfac79af142d816fae5 (git)
Affected: 03f595668017f1a1fb971c02fc37140bc6e7bb1c , < 8c58a92849175f5e2ab7bc2734b3b89afe79f6ef (git)
Affected: 03f595668017f1a1fb971c02fc37140bc6e7bb1c , < af24e202b543ded8a34f1d5d3db54eb916173f04 (git)
Affected: 03f595668017f1a1fb971c02fc37140bc6e7bb1c , < 157ce2c6836ce0ff19108a819f38df061345425f (git)
Affected: 03f595668017f1a1fb971c02fc37140bc6e7bb1c , < 41058d4c3f63ab64901560a704882e0565f4e456 (git)
Affected: 03f595668017f1a1fb971c02fc37140bc6e7bb1c , < a3cc795129e5ec0f8948653a3bf471e7d8852f5e (git)
Affected: 03f595668017f1a1fb971c02fc37140bc6e7bb1c , < bd4be70669af55b974860d13680348cfdf50bbed (git)
Affected: 03f595668017f1a1fb971c02fc37140bc6e7bb1c , < fa0b9b2b7ae3539908d69c2b9ac0d144d9bc5139 (git)
Create a notification for this product.
Linux Linux Affected: 3.8
Unaffected: 0 , < 3.8 (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.93 , ≤ 6.12.* (semver)
Unaffected: 6.18.35 , ≤ 6.18.* (semver)
Unaffected: 7.0.12 , ≤ 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/util.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "3bbe2bb9111ce6967a951bfac79af142d816fae5",
              "status": "affected",
              "version": "03f595668017f1a1fb971c02fc37140bc6e7bb1c",
              "versionType": "git"
            },
            {
              "lessThan": "8c58a92849175f5e2ab7bc2734b3b89afe79f6ef",
              "status": "affected",
              "version": "03f595668017f1a1fb971c02fc37140bc6e7bb1c",
              "versionType": "git"
            },
            {
              "lessThan": "af24e202b543ded8a34f1d5d3db54eb916173f04",
              "status": "affected",
              "version": "03f595668017f1a1fb971c02fc37140bc6e7bb1c",
              "versionType": "git"
            },
            {
              "lessThan": "157ce2c6836ce0ff19108a819f38df061345425f",
              "status": "affected",
              "version": "03f595668017f1a1fb971c02fc37140bc6e7bb1c",
              "versionType": "git"
            },
            {
              "lessThan": "41058d4c3f63ab64901560a704882e0565f4e456",
              "status": "affected",
              "version": "03f595668017f1a1fb971c02fc37140bc6e7bb1c",
              "versionType": "git"
            },
            {
              "lessThan": "a3cc795129e5ec0f8948653a3bf471e7d8852f5e",
              "status": "affected",
              "version": "03f595668017f1a1fb971c02fc37140bc6e7bb1c",
              "versionType": "git"
            },
            {
              "lessThan": "bd4be70669af55b974860d13680348cfdf50bbed",
              "status": "affected",
              "version": "03f595668017f1a1fb971c02fc37140bc6e7bb1c",
              "versionType": "git"
            },
            {
              "lessThan": "fa0b9b2b7ae3539908d69c2b9ac0d144d9bc5139",
              "status": "affected",
              "version": "03f595668017f1a1fb971c02fc37140bc6e7bb1c",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "ipc/util.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.8"
            },
            {
              "lessThan": "3.8",
              "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.93",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.35",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.0.*",
              "status": "unaffected",
              "version": "7.0.12",
              "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.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.210",
                  "versionStartIncluding": "3.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.176",
                  "versionStartIncluding": "3.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.143",
                  "versionStartIncluding": "3.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.93",
                  "versionStartIncluding": "3.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.35",
                  "versionStartIncluding": "3.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0.12",
                  "versionStartIncluding": "3.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1",
                  "versionStartIncluding": "3.8",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nipc: limit next_id allocation to the valid ID range\n\nThe checkpoint/restore sysctl path can request the next SysV IPC id\nthrough ids-\u003enext_id.  ipc_idr_alloc() currently forwards that request to\nidr_alloc() with an open-ended upper bound.\n\nIf the valid tail of the SysV IPC id space is full, the allocation can\nspill beyond ipc_mni.  The returned SysV IPC id still uses the normal\nindex encoding, so later lookup and removal can target the wrong slot. \nThis leaves the real IDR entry behind and breaks the IDR state for the\nobject.\n\nThe bug is in ipc_idr_alloc() in the checkpoint/restore path.\n\n1. ids-\u003enext_id is passed to:\n\n       idr_alloc(\u0026ids-\u003eipcs_idr, new, ipcid_to_idx(next_id), 0, ...)\n\n2. The zero upper bound makes the allocation effectively open-ended.\n   Once the valid SysV IPC tail is occupied, idr_alloc() can spill past\n   ipc_mni and allocate an entry beyond the valid IPC id range.\n\n3. The new object id is still encoded with the narrower SysV IPC index\n   width:\n\n       new-\u003eid = (new-\u003eseq \u003c\u003c ipcmni_seq_shift()) + idx\n\n4. Later removal goes through ipc_rmid(), which uses:\n\n       ipcid_to_idx(ipcp-\u003eid)\n\n   That truncates the real IDR index. An object actually stored at a\n   high index can then be removed as if it lived at a low in-range\n   index.\n\n5. For shared memory, shm_destroy() frees the current object anyway, but\n   the real high IDR slot is left behind as a dangling pointer.\n\n6. A subsequent walk of /proc/sysvipc/shm reaches the stale IDR entry\n   and dereferences freed memory.\n\nPrevent this by bounding the requested allocation to ipc_mni so the\ncheckpoint/restore path fails once the valid range is exhausted."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          }
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-06-28T06:36:45.317Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/3bbe2bb9111ce6967a951bfac79af142d816fae5"
        },
        {
          "url": "https://git.kernel.org/stable/c/8c58a92849175f5e2ab7bc2734b3b89afe79f6ef"
        },
        {
          "url": "https://git.kernel.org/stable/c/af24e202b543ded8a34f1d5d3db54eb916173f04"
        },
        {
          "url": "https://git.kernel.org/stable/c/157ce2c6836ce0ff19108a819f38df061345425f"
        },
        {
          "url": "https://git.kernel.org/stable/c/41058d4c3f63ab64901560a704882e0565f4e456"
        },
        {
          "url": "https://git.kernel.org/stable/c/a3cc795129e5ec0f8948653a3bf471e7d8852f5e"
        },
        {
          "url": "https://git.kernel.org/stable/c/bd4be70669af55b974860d13680348cfdf50bbed"
        },
        {
          "url": "https://git.kernel.org/stable/c/fa0b9b2b7ae3539908d69c2b9ac0d144d9bc5139"
        }
      ],
      "title": "ipc: limit next_id allocation to the valid ID range",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-52923",
    "datePublished": "2026-06-24T07:14:17.849Z",
    "dateReserved": "2026-06-09T07:44:35.367Z",
    "dateUpdated": "2026-06-28T06:36:45.317Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-52923",
      "date": "2026-06-29",
      "epss": "0.00121",
      "percentile": "0.02198"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-52923\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-06-24T08:16:22.300\",\"lastModified\":\"2026-06-28T08:16:23.927\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nipc: limit next_id allocation to the valid ID range\\n\\nThe checkpoint/restore sysctl path can request the next SysV IPC id\\nthrough ids-\u003enext_id.  ipc_idr_alloc() currently forwards that request to\\nidr_alloc() with an open-ended upper bound.\\n\\nIf the valid tail of the SysV IPC id space is full, the allocation can\\nspill beyond ipc_mni.  The returned SysV IPC id still uses the normal\\nindex encoding, so later lookup and removal can target the wrong slot. \\nThis leaves the real IDR entry behind and breaks the IDR state for the\\nobject.\\n\\nThe bug is in ipc_idr_alloc() in the checkpoint/restore path.\\n\\n1. ids-\u003enext_id is passed to:\\n\\n       idr_alloc(\u0026ids-\u003eipcs_idr, new, ipcid_to_idx(next_id), 0, ...)\\n\\n2. The zero upper bound makes the allocation effectively open-ended.\\n   Once the valid SysV IPC tail is occupied, idr_alloc() can spill past\\n   ipc_mni and allocate an entry beyond the valid IPC id range.\\n\\n3. The new object id is still encoded with the narrower SysV IPC index\\n   width:\\n\\n       new-\u003eid = (new-\u003eseq \u003c\u003c ipcmni_seq_shift()) + idx\\n\\n4. Later removal goes through ipc_rmid(), which uses:\\n\\n       ipcid_to_idx(ipcp-\u003eid)\\n\\n   That truncates the real IDR index. An object actually stored at a\\n   high index can then be removed as if it lived at a low in-range\\n   index.\\n\\n5. For shared memory, shm_destroy() frees the current object anyway, but\\n   the real high IDR slot is left behind as a dangling pointer.\\n\\n6. A subsequent walk of /proc/sysvipc/shm reaches the stale IDR entry\\n   and dereferences freed memory.\\n\\nPrevent this by bounding the requested allocation to ipc_mni so the\\ncheckpoint/restore path fails once the valid range is exhausted.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"ipc/util.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"03f595668017f1a1fb971c02fc37140bc6e7bb1c\",\"lessThan\":\"3bbe2bb9111ce6967a951bfac79af142d816fae5\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"03f595668017f1a1fb971c02fc37140bc6e7bb1c\",\"lessThan\":\"8c58a92849175f5e2ab7bc2734b3b89afe79f6ef\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"03f595668017f1a1fb971c02fc37140bc6e7bb1c\",\"lessThan\":\"af24e202b543ded8a34f1d5d3db54eb916173f04\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"03f595668017f1a1fb971c02fc37140bc6e7bb1c\",\"lessThan\":\"157ce2c6836ce0ff19108a819f38df061345425f\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"03f595668017f1a1fb971c02fc37140bc6e7bb1c\",\"lessThan\":\"41058d4c3f63ab64901560a704882e0565f4e456\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"03f595668017f1a1fb971c02fc37140bc6e7bb1c\",\"lessThan\":\"a3cc795129e5ec0f8948653a3bf471e7d8852f5e\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"03f595668017f1a1fb971c02fc37140bc6e7bb1c\",\"lessThan\":\"bd4be70669af55b974860d13680348cfdf50bbed\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"03f595668017f1a1fb971c02fc37140bc6e7bb1c\",\"lessThan\":\"fa0b9b2b7ae3539908d69c2b9ac0d144d9bc5139\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"ipc/util.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"3.8\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"3.8\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.259\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.210\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.176\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.143\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.93\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.35\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.0.12\",\"lessThanOrEqual\":\"7.0.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}]},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/157ce2c6836ce0ff19108a819f38df061345425f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/3bbe2bb9111ce6967a951bfac79af142d816fae5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/41058d4c3f63ab64901560a704882e0565f4e456\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8c58a92849175f5e2ab7bc2734b3b89afe79f6ef\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a3cc795129e5ec0f8948653a3bf471e7d8852f5e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/af24e202b543ded8a34f1d5d3db54eb916173f04\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/bd4be70669af55b974860d13680348cfdf50bbed\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/fa0b9b2b7ae3539908d69c2b9ac0d144d9bc5139\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


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…