x86/mm/pat: Allocate split page tables as kernel page tables
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
06.18.537.2.77.3In the Linux kernel, the following vulnerability has been resolved:
x86/mm/pat: Allocate split page tables as kernel page tables
A PTE is allocated directly without going through the standard page table allocation routines (such as pte_alloc_one_kernel()) when the CPA code splits a large page (__split_large_page()).
This means the page table constructor is never called nor is the page table marked as a kernel page table.
The former results in the folio associated with the page table not being marked as a page table (__pagetable_ctor() is never called thus neither is __folio_set_pgtable()) nor are statistics updated to reflect it (lruvec_stat_add_folio() is never called).
The latter issue of failing to mark the page table as a kernel page table (ptdesc_set_kernel() is never called) is far more problematic.
Since commit:
5ba2f0a15564 ("mm: introduce deferred freeing for kernel page tables")
From the CVE record · Linux
The Linux kernel's x86/mm/pat code allocates split page tables without marking them as kernel page tables. When those tables are freed, stale IOTLB entries can remain. The input does not specify an attacker action, access requirements, or whether user interaction is needed.
Engineers running Linux kernels with the affected x86/mm/pat code should check their kernel; affected versions are not specified.