Description
In the Linux kernel, the following vulnerability has been resolved: net: netns: fix INT_MAX nsid cleanup A syzkaller reproducer assigning INT_MAX as a peer nsid triggers an idr_get_next() warning during netns cleanup. With panic_on_warn, this panics the kernel. alloc_netid() also overflows reqid + 1 for this nsid. Use idr_alloc_u32() for requested IDs and idr_get_next_ul() for cleanup so the cursor can advance past INT_MAX. 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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
7acee67a6bce02e0af8a4bf7b412e2164d5a48e9 to < 25de7edc0c032bc0b8fc9a6061e4092c2140a20faffected7acee67a6bce02e0af8a4bf7b412e2164d5a48e9 to < dd6f1e7582f0f7f12c2d620cf50446aa987d7327affected
Linux Linux
Default version status: affected
7.0affected0 to < 7.0unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected