{"id":28957,"date":"2026-09-25T20:31:36","date_gmt":"2026-09-25T12:31:36","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-97525"},"modified":"2026-09-25T20:31:36","modified_gmt":"2026-09-25T12:31:36","slug":"cve-2026-97525","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-97525","title":{"rendered":"CVE-2026-97525 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nx86\/mm\/pat: Allocate"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>x86\/mm\/pat: Allocate split page tables as kernel page tables<\/p>\n<p>A PTE is allocated directly without going through the standard page table<br \/>\nallocation routines (such as pte_alloc_one_kernel()) when the CPA code<br \/>\nsplits a large page (__split_large_page()).<\/p>\n<p>This means the page table constructor is never called nor is the page table<br \/>\nmarked as a kernel page table.<\/p>\n<p>The former results in the folio associated with the page table not being<br \/>\nmarked as a page table (__pagetable_ctor() is never called thus neither is<br \/>\n__folio_set_pgtable()) nor are statistics updated to reflect<br \/>\nit (lruvec_stat_add_folio() is never called).<\/p>\n<p>The latter issue of failing to mark the page table as a kernel page<br \/>\ntable (ptdesc_set_kernel() is never called) is far more problematic.<\/p>\n<p>Since commit:<\/p>\n<p>  5ba2f0a15564 (&#8220;mm: introduce deferred freeing for kernel page tables&#8221;)<\/p>\n<p>kernel page table freeing has been batched and since the<br \/>\nsubsequent commit:<\/p>\n<p>  e37d5a2d60a3 (&#8220;iommu\/sva: invalidate stale IOTLB entries for kernel address space&#8221;)<\/p>\n<p>IOTLB cache entries for kernel page tables have been invalidated upon<br \/>\nbeing freed.<\/p>\n<p>Since split page tables are freed without this invalidation, the IOTLB<br \/>\ncan contain stale entries for them.<\/p>\n<p>Resolve the issue by using the ordinary PTE allocation API at split time.<\/p>\n<p>This results in these kernel page tables invoking a page table constructor,<br \/>\nand thus requires a page table destructor.<\/p>\n<p>Destructors are not always present, like for early allocated direct map<br \/>\npage tables). Conditionally call pagetable_dtor_free() if the PG_table<br \/>\nfolio flag for the ptdesc is set, otherwise we free the page table via<br \/>\npagetable_free().<\/p>\n<p>Regardless of which path is taken page tables marked as kernel page tables,<br \/>\nwhich now includes split page tables, take the correct route through<br \/>\npagetable_free_kernel().<\/p>\n<p>There is a user-visible side effect in that split page tables will appear<br \/>\nin nr_page_table_pages in \/proc\/vmstat (as do other kernel page tables<br \/>\nallocated after early boot), however this is a positive change.<\/p>\n<p>This issue started being markedly problematic after commit:<\/p>\n<p>  5ba2f0a15564 (&#8220;mm: introduce deferred freeing for kernel page tables&#8221;)<\/p>\n<p>so choose this as the Fixes target.<\/p>\n<p>[ dhansen: rephrase in imperative mood ]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>x86\/mm\/pat: Allocate split page tables as kernel page tables<\/p>\n<p>A PTE is allocated directly without going through the standard page t<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-28957","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/28957","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=28957"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=28957"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=28957"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}