CVE-2026-143157

Source
https://cve.org/CVERecord?id=CVE-2026-143157
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143157.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-143157
Downstream
Published
2026-12-03T09:19:57Z
Modified
2026-12-03T11:01:27Z
Summary
net: netns: fix INT_MAX nsid cleanup
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143157.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

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"

Linux / Kernel

Package

Name
Kernel

Affected 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"