| 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 If the valid tail of the SysV IPC id space is full, the allocation can 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. 3. The new object id is still encoded with the narrower SysV IPC index 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 5. For shared memory, shm_destroy() frees the current object anyway, but 6. A subsequent walk of /proc/sysvipc/shm reaches the stale IDR entry Prevent this by bounding the requested allocation to ipc_mni so the |
|---|---|
| Publication Date | June 24, 2026, 5:16 p.m. |
| Registration Date | June 27, 2026, 4:17 a.m. |
| Last Update | June 24, 2026, 5:16 p.m. |