CVE-2026-143167: mm/page_alloc: clear ->private of deferred free pages
In the Linux kernel, the following vulnerability has been resolved:
mm/pagealloc: clear ->private of deferred free pages
freepagesnolock() and freefrozenpagesnolock() put the page on zone->trylockfreepages if they get neither the pcp lock nor zone->lock. addpagetozonellist() keeps the order of the page in page->private. The next freeonepage() which does get zone->lock passes these pages to splitlargebuddy() with ->private still set.
freeonepage() writes ->private of the head of the resulting free page only. If the deferred page is merged with its lower buddy, it becomes a tail of that free page and keeps the order in ->private.
All other free pages which are not the head of a buddy have a ->private of zero, and since commit 819bfbd47e49 ("mm/pagealloc: remove setpageprivate() in prepcompoundtail()") the allocator relies on it. When the stale page is allocated again as a tail of a larger page:
- prepcompoundtail() hits VMWARNONONCE(tail->private); - with the page checks enabled, freepagesprepare() reports "BUG: Bad page state", "nonzero private", and leaks the whole page; - without them the value is seen by whoever uses that page next, e.g. as folio->private of a folio which is split off a large folio.
Only pages of an order above zero are affected. Those can be freed through nolock() by the stack depot (order 2) and by SLUB (a new slab which cannot be added to the partial list by kmallocnolock()).
Clear ->private when the page is taken off the list.
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 - Compensating control
Clear ->private when a deferred free page is taken off the list.
Event History
Frequently Asked Questions
Under what allocator conditions can the stale value persist?
The issue occurs when free_pages_nolock() or free_frozen_pages_nolock() cannot obtain either the per-CPU-pages lock or zone lock and places pages on zone->trylock_free_pages. If a deferred page is later merged with its lower buddy, it can become a tail page while retaining the order value in page->private.
What symptoms can indicate this condition has occurred?
Allocation of the affected page as a tail of a larger compound page can trigger VM_WARN_ON_ONCE(tail->private). With page checks enabled, __free_pages_prepare() can report "BUG: Bad page state" and "nonzero private" and leak the whole page.
Does enabling page checks change the observed impact?
Yes. With page checks enabled, the allocator reports the nonzero private field and leaks the affected page; without page checks, the stale value can be observed by the next user of that page.
Which fixes are identified for this issue?
The provided references identify fixes at stable commits 39feec0f1dd6132652755debecf3087be212aa87, 04f8feced6059c267c35cce715921beb4cc07021, and aae6b83fe47ed8bff9195efbe1d191ec52e5436e.