CVE-2026-142880: mm/page_alloc: mark pages freed by __free_pages_core() as not tagged
In the Linux kernel, the following vulnerability has been resolved:
mm/pagealloc: mark pages freed by freepagescore() as not tagged
Onlining hotplugged memory (e.g., a devdax device bound to kmem) with CONFIGMEMALLOCPROFILINGDEBUG triggers:
alloctag was not set WARNING: ./include/linux/alloctag.h:166 at pgalloctagsub+0x1fc/0x254 Call trace: pgalloctagsub+0x1fc/0x254 (P) freepagesok+0x14c/0x6ac freepagescore+0xa8/0x188 genericonlinepage+0x14/0x20 onlinepages+0x220/0x3b0 memorysubsysonline+0xfc/0x198 deviceonline+0x58/0xe0 statestore+0xf0/0xf8
Pages entering the buddy through freepagescore() have never been allocated, so their allocation tag references are NULL. The free path, freepagesprepare() -> pgalloctagsub(), expects a valid tag or a CODETAGEMPTY mark and warns otherwise. Paths feeding never-allocated pages into the buddy are therefore expected to mark them with clearpagetagref() first, like initcmareservedpageblock() and freereservedpages() do; of freepagescore()'s callers only memblockfreepages() clears the tag ref itself, and the hotplug onlining path was missed.
Since all freepagescore() callers free never-allocated pages, mark the head page as not tagged in freepagescore() itself instead of relying on each caller, and drop the now-redundant clearing from memblockfreepages().
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.12.118 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.64 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.5