{
  "id": "CVE-2026-52923",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-52923",
  "published_at": "2026-06-24T07:14:17.849Z",
  "title": "ipc: limit next_id allocation to the valid ID range",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-20",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:3.8:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:3.8:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:3.8:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:3.8:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:3.8:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:3.8:rc7:*:*:*:*:*:*",
    "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:7.1:rc5:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [
    {
      "repo": "Hari-v542/CVE-2026-52923",
      "url": "https://github.com/Hari-v542/CVE-2026-52923",
      "created_at": "2026-08-28T07:37:22Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2025-08-10T17:21:30Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 03f595668017f1a1fb971c02fc37140bc6e7bb1c, \u003c 3bbe2bb9111ce6967a951bfac79af142d816fae5",
          "\u003e= 03f595668017f1a1fb971c02fc37140bc6e7bb1c, \u003c 8c58a92849175f5e2ab7bc2734b3b89afe79f6ef",
          "\u003e= 03f595668017f1a1fb971c02fc37140bc6e7bb1c, \u003c af24e202b543ded8a34f1d5d3db54eb916173f04",
          "\u003e= 03f595668017f1a1fb971c02fc37140bc6e7bb1c, \u003c 157ce2c6836ce0ff19108a819f38df061345425f",
          "\u003e= 03f595668017f1a1fb971c02fc37140bc6e7bb1c, \u003c 41058d4c3f63ab64901560a704882e0565f4e456",
          "\u003e= 03f595668017f1a1fb971c02fc37140bc6e7bb1c, \u003c a3cc795129e5ec0f8948653a3bf471e7d8852f5e",
          "\u003e= 03f595668017f1a1fb971c02fc37140bc6e7bb1c, \u003c bd4be70669af55b974860d13680348cfdf50bbed",
          "\u003e= 03f595668017f1a1fb971c02fc37140bc6e7bb1c, \u003c fa0b9b2b7ae3539908d69c2b9ac0d144d9bc5139"
        ],
        "fixed_in": [
          "3bbe2bb9111ce6967a951bfac79af142d816fae5",
          "8c58a92849175f5e2ab7bc2734b3b89afe79f6ef",
          "af24e202b543ded8a34f1d5d3db54eb916173f04",
          "157ce2c6836ce0ff19108a819f38df061345425f",
          "41058d4c3f63ab64901560a704882e0565f4e456",
          "a3cc795129e5ec0f8948653a3bf471e7d8852f5e",
          "bd4be70669af55b974860d13680348cfdf50bbed",
          "fa0b9b2b7ae3539908d69c2b9ac0d144d9bc5139"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "3.8"
        ],
        "fixed_in": [
          "0",
          "5.10.259",
          "5.15.210",
          "6.1.176",
          "6.6.143",
          "6.12.93",
          "6.18.35",
          "7.0.12",
          "7.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 3bbe2bb9111ce6967a951bfac79af142d816fae5 or 8c58a92849175f5e2ab7bc2734b3b89afe79f6ef or af24e202b543ded8a34f1d5d3db54eb916173f04 or 157ce2c6836ce0ff19108a819f38df061345425f or 41058d4c3f63ab64901560a704882e0565f4e456 or a3cc795129e5ec0f8948653a3bf471e7d8852f5e or bd4be70669af55b974860d13680348cfdf50bbed or fa0b9b2b7ae3539908d69c2b9ac0d144d9bc5139 or later.",
      "Upgrade Linux to 0 or 5.10.259 or 5.15.210 or 6.1.176 or 6.6.143 or 6.12.93 or 6.18.35 or 7.0.12 or 7.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
