{"id":"CVE-2026-143157","state":"PUBLISHED","title":"net: netns: fix INT_MAX nsid cleanup","description":"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.","publishedAt":"2026-12-03T09:19:57.877Z","updatedAt":"2026-12-03T09:19:57.877Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7acee67a6bce02e0af8a4bf7b412e2164d5a48e9","status":"affected","lessThan":"25de7edc0c032bc0b8fc9a6061e4092c2140a20f","versionType":"git"},{"version":"7acee67a6bce02e0af8a4bf7b412e2164d5a48e9","status":"affected","lessThan":"dd6f1e7582f0f7f12c2d620cf50446aa987d7327","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/net_namespace.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.0","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/net_namespace.c"]}],"references":["https://git.kernel.org/stable/c/25de7edc0c032bc0b8fc9a6061e4092c2140a20f","https://git.kernel.org/stable/c/dd6f1e7582f0f7f12c2d620cf50446aa987d7327"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143157.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143157","state":"PUBLISHED","datePublished":"2026-12-03T09:19:57.877Z","dateUpdated":"2026-12-03T09:19:57.877Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.355Z"},"containers":{"cna":{"title":"net: netns: fix INT_MAX nsid cleanup","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7acee67a6bce02e0af8a4bf7b412e2164d5a48e9","status":"affected","lessThan":"25de7edc0c032bc0b8fc9a6061e4092c2140a20f","versionType":"git"},{"version":"7acee67a6bce02e0af8a4bf7b412e2164d5a48e9","status":"affected","lessThan":"dd6f1e7582f0f7f12c2d620cf50446aa987d7327","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/net_namespace.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.0","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/net_namespace.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/25de7edc0c032bc0b8fc9a6061e4092c2140a20f"},{"url":"https://git.kernel.org/stable/c/dd6f1e7582f0f7f12c2d620cf50446aa987d7327"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:19:57.877Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}