CVE-2026-53288: arm64: Reserve an extra page for early kernel mapping
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
arm64: Reserve an extra page for early kernel mapping
The final part of [data, end) segment may overflow into the next page of init_pg_end[1] which is the gap page before early_init_stack[2]:
[1]
crash_arm64_v9.0.1> vtop ffffffed00601000
VIRTUAL PHYSICALffffffed00601000 83401000
PAGE DIRECTORY: ffffffecffd62000
PGD: ffffffecffd62da0 => 10000000833fb003
PMD: ffffff80033fb018 => 10000000833fe003
PTE: ffffff80033fe008 => 68000083401f03
PAGE: 83401000
PTE PHYSICAL FLAGS 68000083401f03 83401000 (VALID|SHARED|AF|NG|PXN|UXN)
PAGE PHYSICAL MAPPING INDEX CNT FLAGSfffffffec00d0040 83401000 0 0 1 4000 reserved
[2]ffffffed002c8000 (r) __pi__dataffffffed0054e000 (d) __pi___bss_startffffffed005f5000 (b) __pi_init_pg_dirffffffed005fe000 (b) __pi_init_pg_endffffffed005ff000 (B) early_init_stackffffffed00608000 (b) __pi__end
For 4K pages, the early kernel mapping may use 2MB block entries but the kernel segments are only 64KB aligned. Segment boundaries that fall within a 2MB block therefore require a PTE table so that different attributes can be applied on either side of the boundary.
KERNEL_SEGMENT_COUNT still correctly counts the five permanent kernel VMAs registered by declare_kernel_vmas(). However, since commit 5973a62efa34 ("arm64: map [_text, _stext) virtual address range non-executable+read-only"), the early mapper also maps [_text, _stext) separately from [_stext, _etext). This adds one more early-only split and can require one more page-table page than the existing EARLY_SEGMENT_EXTRA_PAGES allowance reserves.
Increase the 4K-page early mapping allowance by one page to cover that additional split.
[[email protected]: rewrote part of the commit log] [[email protected]: expanded the code comment]
The Linux kernel CVE team has assigned CVE-2026-53288 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.12.54 with commit fdd380a5950503a07aaaf74536a0c2f223475eb0 and fixed in 6.12.91 with commit a4ff33053da0a34b14abb5c96dc5a48379e26fce Issue introduced in 6.18 with commit 5973a62efa34c80c9a4e5eac1fca6f6209b902af and fixed in 6.18.33 with commit dcb89deed40ba55ff7020061712fdabf098cc2cc Issue introduced in 6.18 with commit 5973a62efa34c80c9a4e5eac1fca6f6209b902af and fixed in 7.0.10 with commit 9fe9e3acaa14921b0cf0d6cc2de5b562499bf721 Issue introduced in 6.18 with commit 5973a62efa34c80c9a4e5eac1fca6f6209b902af and fixed in 7.1 with commit 4d8e74ad4585672489da6145b3328d415f50db82 Issue introduced in 6.17.4 with commit 88025faf2aa08c7468d68d8cb31a53b55aae6ee0
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-53288
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
arch/arm64/include/asm/kernel-pgtable.h
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/a4ff33053da0a34b14abb5c96dc5a48379e26fce https://git.kernel.org/stable/c/dcb89deed40ba55ff7020061712fdabf098cc2cc https://git.kernel.org/stable/c/9fe9e3acaa14921b0cf0d6cc2de5b562499bf721 https://git.kernel.org/stable/c/4d8e74ad4585672489da6145b3328d415f50db82