CVE-2026-143169
not scored yetmm/page_alloc: keep the pagesets of an empty zone
In the Linux kernel, the following vulnerability has been resolved:
mm/page_alloc: keep the pagesets of an empty zone
When the last memory of a zone goes offline, zone_pcp_reset() frees
zone->per_cpu_pageset and zone->per_cpu_zonestats. Nothing waits for those
who found the zone populated and still use the two pointers. They take
neither the memory hotplug lock nor any other lock which offline_pages()
holds, and some of them can sleep:
CPU0 vmstat_update() CPU1 offline_pages()
refresh_cpu_vm_stats()
for_each_populated_zone(zone)
pcp = zone->per_cpu_pageset
cond_resched()
adjust_present_page_count()
zone_pcp_reset(zone)
free_percpu(zone->per_cpu_pageset)
decay_pcp_high(zone, pcp)
__this_cpu_write(pcp->expire, 0)
The same goes for drain_all_pages(NULL), which takes pcp->lock, for
zone_pcp_update(), show_free_areas() and the readers and writers of the
zonestats. If the per-cpu memory has got a new owner in the meantime, it
is corrupted.
The pagesets are only freed because setup_zone_pageset() would otherwise
leak them when the zone gets memory again. Keep them instead and let
setup_zone_pageset() and zone_pcp_init() use them again, like it is done
with pgdat->per_cpu_nodestats. Their lists are empty, and their limits
have been calculated for a zone without memory by the
init_per_zone_wmark_min() of offline_pages(), which is what
setup_zone_pageset() would come up with as well.
- Published
- 3 Dec 2026
- Last modified
- 3 Dec 2026
- Assigned by
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- NVD status
- Received
- Sources
- NVDJSONCVE ListJSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | Linux | Linux | >= 340175b7d14d5617559d0c1a54fa0ea204d9edcd, < 2be9a0b3daed689f328de80019fc125af4ca27c0; >= 340175b7d14d5617559d0c1a54fa0ea204d9edcd, < f6ebb3ee0ac9abb01e628238e2d5369b2de00ad3; >= 340175b7d14d5617559d0c1a54fa0ea204d9edcd, < dc7501fe9cc9053b9ed24d9f299e6a6af297e4ca; >= 340175b7d14d5617559d0c1a54fa0ea204d9edcd, < 7bfcf81b1cb469bc016fa8e07939c0924b9ff8db | 2be9a0b3daed689f328de80019fc125af4ca27c0, f6ebb3ee0ac9abb01e628238e2d5369b2de00ad3, dc7501fe9cc9053b9ed24d9f299e6a6af297e4ca, 7bfcf81b1cb469bc016fa8e07939c0924b9ff8db |
| CVE List | Linux | Linux | = 3.6 |
References
- https://git.kernel.org/stable/c/2be9a0b3daed689f328de80019fc125af4ca27c0
- https://git.kernel.org/stable/c/7bfcf81b1cb469bc016fa8e07939c0924b9ff8db
- https://git.kernel.org/stable/c/dc7501fe9cc9053b9ed24d9f299e6a6af297e4ca
- https://git.kernel.org/stable/c/f6ebb3ee0ac9abb01e628238e2d5369b2de00ad3
History
- 3 Dec 2026 11:07 UTC · NVD: first stored (published 3 Dec 2026)
- 3 Dec 2026 10:08 UTC · CVE List: first stored (published 3 Dec 2026)