{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "7acee67a6bce02e0af8a4bf7b412e2164d5a48e9"
            },
            {
              "fixed": "25de7edc0c032bc0b8fc9a6061e4092c2140a20f"
            },
            {
              "fixed": "dd6f1e7582f0f7f12c2d620cf50446aa987d7327"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "7.0.0"
            },
            {
              "fixed": "7.3.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143157.json"
  },
  "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.",
  "id": "CVE-2026-143157",
  "modified": "2026-12-03T10:45:56.869348621Z",
  "published": "2026-12-03T09:19:57.877Z",
  "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"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "net: netns: fix INT_MAX nsid cleanup"
}