CVE-2026-143157: net: netns: fix INT_MAX nsid cleanup
In the Linux kernel, the following vulnerability has been resolved:
net: netns: fix INTMAX nsid cleanup
A syzkaller reproducer assigning INTMAX as a peer nsid triggers an idrgetnext() warning during netns cleanup. With paniconwarn, this panics the kernel.
allocnetid() also overflows reqid + 1 for this nsid. Use idrallocu32() for requested IDs and idrgetnextul() for cleanup so the cursor can advance past INTMAX.
QEMU/KVM reproduced the warning without kernel changes or fault injection. The same reproducer ran without warnings after this change. Kernel selftests were not run.
Affected Software
Event History
Frequently Asked Questions
Are affected Linux kernel versions identified?
No affected version range is provided. The listed stable-kernel commit references identify fixes, but the data does not map them to release versions.
What evidence indicates a system is encountering this issue?
A warning from idr_get_next() during network-namespace cleanup after assigning INT_MAX as a peer NSID is the reported symptom. Systems configured with panic_on_warn can panic when that warning occurs.
How was the fix validated?
The reported syzkaller reproducer ran without warnings after the change, including under QEMU/KVM without kernel changes or fault injection. Kernel selftests were not run.