{"id":"CVE-2026-143157","summary":"net: netns: fix INT_MAX nsid cleanup","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: netns: fix INT_MAX nsid cleanup\n\nA syzkaller reproducer assigning INT_MAX as a peer nsid triggers an\nidr_get_next() warning during netns cleanup. With panic_on_warn, this\npanics the kernel.\n\nalloc_netid() also overflows reqid + 1 for this nsid. Use\nidr_alloc_u32() for requested IDs and idr_get_next_ul() for cleanup so\nthe cursor can advance past INT_MAX.\n\nQEMU/KVM reproduced the warning without kernel changes or fault\ninjection. The same reproducer ran without warnings after this change.\nKernel selftests were not run.","modified":"2026-12-03T11:01:27.157061151Z","published":"2026-12-03T09:19:57.877Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143157.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/25de7edc0c032bc0b8fc9a6061e4092c2140a20f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dd6f1e7582f0f7f12c2d620cf50446aa987d7327"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143157.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143157"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7acee67a6bce02e0af8a4bf7b412e2164d5a48e9"},{"fixed":"25de7edc0c032bc0b8fc9a6061e4092c2140a20f"},{"fixed":"dd6f1e7582f0f7f12c2d620cf50446aa987d7327"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143157.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.0.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143157.json"}}],"schema_version":"1.9.2"}