CVE-2026-143168: mm/page_alloc: snapshot the preferred zone against shrink rebuilds
In the Linux kernel, the following vulnerability has been resolved:
mm/pagealloc: snapshot the preferred zone against shrink rebuilds
getpagefromfreelist() and allocpagesbulknoprof() reread ac->preferredzoneref->zone at every use. Offlining a zone's last block rebuilds the zonelists in place, and the shrunk list's NULL terminator can land on the preferred slot mid-walk:
CPU 0 CPU 1 getpagefromfreelist(GFPKERNEL | GFPTHISNODE) zone = NORMAL (slot 1) offlinepages() buildallzonelists() [MOVABLE, NORMAL, NULL] -> [NORMAL, NULL] rmqueue(zonelistzone(slot 1), zone) zonestatistics(NULL, zone)
BUG: kernel NULL pointer dereference, address: 0000000000000060 RIP: 0010:getpagefromfreelist+0x6a5/0x15f0 Call Trace: allocfrozenpagesnoprof+0x125/0x330
Read the slot once. Zones are never freed, so a stale zone is safe, and a NULL slot fails the same way as walking off the end.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7
Event History
Frequently Asked Questions
Which systems are most likely to encounter this issue?
Systems that offline the last block of a memory zone while other CPUs are allocating pages are exposed to the race. The example involves an allocation using GFP_KERNEL with __GFP_THISNODE during zonelist rebuilding.
What can be done if the fix cannot be applied immediately?
Avoid offlining a zone's last memory block while page allocations may be occurring. The failure is tied to zonelists being rebuilt and shrunk in place during that operation.
How can I recognize that this issue has occurred?
The reported failure is a kernel NULL pointer dereference at address 0x60 in get_page_from_freelist. The call trace may include __alloc_frozen_pages_noprof, and the fault occurs when allocation code accesses a preferred zonelist slot that became NULL.