CVE-2026-97525

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
25/09/2026
Last modified:
19/10/2026

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> x86/mm/pat: Allocate split page tables as kernel page tables<br /> <br /> A PTE is allocated directly without going through the standard page table<br /> allocation routines (such as pte_alloc_one_kernel()) when the CPA code<br /> splits a large page (__split_large_page()).<br /> <br /> This means the page table constructor is never called nor is the page table<br /> marked as a kernel page table.<br /> <br /> The former results in the folio associated with the page table not being<br /> marked as a page table (__pagetable_ctor() is never called thus neither is<br /> __folio_set_pgtable()) nor are statistics updated to reflect<br /> it (lruvec_stat_add_folio() is never called).<br /> <br /> The latter issue of failing to mark the page table as a kernel page<br /> table (ptdesc_set_kernel() is never called) is far more problematic.<br /> <br /> Since commit:<br /> <br /> 5ba2f0a15564 ("mm: introduce deferred freeing for kernel page tables")<br /> <br /> kernel page table freeing has been batched and since the<br /> subsequent commit:<br /> <br /> e37d5a2d60a3 ("iommu/sva: invalidate stale IOTLB entries for kernel address space")<br /> <br /> IOTLB cache entries for kernel page tables have been invalidated upon<br /> being freed.<br /> <br /> Since split page tables are freed without this invalidation, the IOTLB<br /> can contain stale entries for them.<br /> <br /> Resolve the issue by using the ordinary PTE allocation API at split time.<br /> <br /> This results in these kernel page tables invoking a page table constructor,<br /> and thus requires a page table destructor.<br /> <br /> Destructors are not always present, like for early allocated direct map<br /> page tables). Conditionally call pagetable_dtor_free() if the PG_table<br /> folio flag for the ptdesc is set, otherwise we free the page table via<br /> pagetable_free().<br /> <br /> Regardless of which path is taken page tables marked as kernel page tables,<br /> which now includes split page tables, take the correct route through<br /> pagetable_free_kernel().<br /> <br /> There is a user-visible side effect in that split page tables will appear<br /> in nr_page_table_pages in /proc/vmstat (as do other kernel page tables<br /> allocated after early boot), however this is a positive change.<br /> <br /> This issue started being markedly problematic after commit:<br /> <br /> 5ba2f0a15564 ("mm: introduce deferred freeing for kernel page tables")<br /> <br /> so choose this as the Fixes target.<br /> <br /> [ dhansen: rephrase in imperative mood ]