{"id":"CVE-2026-143171","state":"PUBLISHED","title":"mm/mempolicy: read the zoneref slot once in mempolicy_slab_node()","description":"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.","publishedAt":"2026-12-03T09:20:06.954Z","updatedAt":"2026-12-03T09:20:06.954Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"11cd8638c37f6c400cc472cc52b6eccb505aba6e","status":"affected","lessThan":"d707147654f6c4194729212c467b938886d586be","versionType":"git"},{"version":"11cd8638c37f6c400cc472cc52b6eccb505aba6e","status":"affected","lessThan":"996065285783f30ea7e2f7edeebe660126c44ad6","versionType":"git"},{"version":"11cd8638c37f6c400cc472cc52b6eccb505aba6e","status":"affected","lessThan":"dceaac38481028e5649189e50a87321b9aefb94b","versionType":"git"},{"version":"11cd8638c37f6c400cc472cc52b6eccb505aba6e","status":"affected","lessThan":"4cc1bcdf2e4ebcd319005ce2ea132489f6155139","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/mempolicy.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.14","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","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":["mm/mempolicy.c"]}],"references":["https://git.kernel.org/stable/c/d707147654f6c4194729212c467b938886d586be","https://git.kernel.org/stable/c/996065285783f30ea7e2f7edeebe660126c44ad6","https://git.kernel.org/stable/c/dceaac38481028e5649189e50a87321b9aefb94b","https://git.kernel.org/stable/c/4cc1bcdf2e4ebcd319005ce2ea132489f6155139"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143171.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143171","state":"PUBLISHED","datePublished":"2026-12-03T09:20:06.954Z","dateUpdated":"2026-12-03T09:20:06.954Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.357Z"},"containers":{"cna":{"title":"mm/mempolicy: read the zoneref slot once in mempolicy_slab_node()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"11cd8638c37f6c400cc472cc52b6eccb505aba6e","status":"affected","lessThan":"d707147654f6c4194729212c467b938886d586be","versionType":"git"},{"version":"11cd8638c37f6c400cc472cc52b6eccb505aba6e","status":"affected","lessThan":"996065285783f30ea7e2f7edeebe660126c44ad6","versionType":"git"},{"version":"11cd8638c37f6c400cc472cc52b6eccb505aba6e","status":"affected","lessThan":"dceaac38481028e5649189e50a87321b9aefb94b","versionType":"git"},{"version":"11cd8638c37f6c400cc472cc52b6eccb505aba6e","status":"affected","lessThan":"4cc1bcdf2e4ebcd319005ce2ea132489f6155139","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/mempolicy.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.14","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","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":["mm/mempolicy.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/d707147654f6c4194729212c467b938886d586be"},{"url":"https://git.kernel.org/stable/c/996065285783f30ea7e2f7edeebe660126c44ad6"},{"url":"https://git.kernel.org/stable/c/dceaac38481028e5649189e50a87321b9aefb94b"},{"url":"https://git.kernel.org/stable/c/4cc1bcdf2e4ebcd319005ce2ea132489f6155139"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:20:06.954Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}