CVE-2026-63875: arm64: tlb: Flush walk cache when unsharing PMD tables
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
arm64: tlb: Flush walk cache when unsharing PMD tables
When huge_pmd_unshare() is called to unshare a PMD table, the tlb_unshare_pmd_ptdesc() function sets tlb->unshared_tables=true but the aarch64 tlb_flush() only checked tlb->freed_tables to determine whether to use TLBF_NONE (vae1is, invalidates walk cache) or TLBF_NOWALKCACHE (vale1is, leaf-only).
This caused the stale PMD page table entry to remain in the walk cache after unshare, potentially leading to incorrect page table walks.
Fix by including unshared_tables in the check, so that when unsharing tables, TLBF_NONE is used and the walk cache is properly invalidated.
Here is the detailed distinction between vae1is and vale1is:
| Instruction Combination | Actual Invalidation Scope | | ------------------------ | --------------------------------------------------| | `VAE1IS` + TTL=`0` | All entries at all levels (full invalidation) | | `VAE1IS` + TTL=`2` (L2) | Non-leaf at Level 0/1 + leaf at Level 2 | | `VALE1IS` + TTL=`0` | Leaf entries at all levels (non-leaf not cleared) | | `VALE1IS` + TTL=`2` (L2) | Leaf entry at Level 2 only |
The Linux kernel CVE team has assigned CVE-2026-63875 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.10.253 with commit 6495204f8219a57859669d618b25d06176d5a872 and fixed in 5.10.259 with commit dced308d7d6a0de1c09d2058f38f1aaaf5cbb914 Issue introduced in 5.15.203 with commit ce4cf24761467756462c0e1dbe4a5e9c9eb520fc and fixed in 5.15.210 with commit 47490bbb05c8c0e09cc3cfd237d8934ffc340583 Issue introduced in 6.1.167 with commit daa6707b71a2da23a82979fa21f788aeb706f1a2 and fixed in 6.1.176 with commit 0199c9d57861f17b556b6cba1f765c7cce79745b Issue introduced in 6.6.127 with commit ff37dd18ce7739a26aab0cc2d31006a45e6bde63 and fixed in 6.6.143 with commit d766a49d9b55705c4737cd8bb5d3faa2d31330fd Issue introduced in 6.12.74 with commit da06bb0ca45b1ca6f1ab55023e34e61a520337f3 and fixed in 6.12.93 with commit 8ca7284da0e67b3e71d90ec17f08286774245ad9 Issue introduced in 6.18.13 with commit 9b671f6f432be07c0ddd66e437d6d0e0db684f83 and fixed in 6.18.35 with commit fe93e907b1af03cc229a80aa64a570a103d2b279 Issue introduced in 6.19 with commit 8ce720d5bd91e9dc16db3604aa4b1bf76770a9a1 and fixed in 7.0.12 with commit 48125cd9c55cbe297b59fd1f9bda48b0960bd181 Issue introduced in 6.19 with commit 8ce720d5bd91e9dc16db3604aa4b1bf76770a9a1 and fixed in 7.1 with commit c2ff4764e03e7a8d758352f4aceb8fe1be6ac971
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-63875
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/tlb.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/dced308d7d6a0de1c09d2058f38f1aaaf5cbb914 https://git.kernel.org/stable/c/47490bbb05c8c0e09cc3cfd237d8934ffc340583 https://git.kernel.org/stable/c/0199c9d57861f17b556b6cba1f765c7cce79745b https://git.kernel.org/stable/c/d766a49d9b55705c4737cd8bb5d3faa2d31330fd https://git.kernel.org/stable/c/8ca7284da0e67b3e71d90ec17f08286774245ad9 https://git.kernel.org/stable/c/fe93e907b1af03cc229a80aa64a570a103d2b279 https://git.kernel.org/stable/c/48125cd9c55cbe297b59fd1f9bda48b0960bd181 https://git.kernel.org/stable/c/c2ff4764e03e7a8d758352f4aceb8fe1be6ac971