{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "11cd8638c37f6c400cc472cc52b6eccb505aba6e"
            },
            {
              "fixed": "d707147654f6c4194729212c467b938886d586be"
            },
            {
              "fixed": "996065285783f30ea7e2f7edeebe660126c44ad6"
            },
            {
              "fixed": "dceaac38481028e5649189e50a87321b9aefb94b"
            },
            {
              "fixed": "4cc1bcdf2e4ebcd319005ce2ea132489f6155139"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.14.0"
            },
            {
              "fixed": "6.12.120"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.66"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.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-143171.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/mempolicy: read the zoneref slot once in mempolicy_slab_node()\n\nFor a bind or preferred-many policy, mempolicy_slab_node() tests the\nfirst matching slot's zone for NULL, then reads the slot again to look\nup the zone's node. Offlining a zone's last block rebuilds the\nzonelists in place, so the second read can return the terminator:\n\n  CPU 0                             CPU 1\n  mempolicy_slab_node()\n    zonelist_zone(slot 4)\n      = node 2 NORMAL\n                                    offline_pages()\n                                      build_all_zonelists()\n                                        slot 4 = NULL\n    zonelist_node_idx(slot 4)\n      zone_to_nid(NULL)\n\nCurrent GCC merges the two reads, but nothing requires it. With\nmm/mempolicy.o built with -fno-inline -fno-ipa-sra, holding a bound\ntask's slab_strict_numa allocation between the reads while a movable\nblock earlier in the zonelist goes offline oopses every time:\n\n  BUG: kernel NULL pointer dereference, address: 0000000000000060\n  RIP: 0010:zone_to_nid+0x0/0x10\n  Call Trace:\n   kmem_cache_alloc_noprof+0x294/0x610\n   do_getname+0x34/0x230\n\nmempolicy_slab_node() and zonelist_node_idx() are tail calls here, so\nneither appears in the trace.\n\nRead the slot once and use that zone.",
  "id": "CVE-2026-143171",
  "modified": "2026-12-03T10:45:41.383514760Z",
  "published": "2026-12-03T09:20:06.954Z",
  "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/4cc1bcdf2e4ebcd319005ce2ea132489f6155139"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/996065285783f30ea7e2f7edeebe660126c44ad6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d707147654f6c4194729212c467b938886d586be"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/dceaac38481028e5649189e50a87321b9aefb94b"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143171.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143171"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "mm/mempolicy: read the zoneref slot once in mempolicy_slab_node()"
}