CVE-2026-138979: KVM: arm64: ptdump: Check the page tables aren't freed when accessing
In the Linux kernel, the following vulnerability has been resolved:
KVM: arm64: ptdump: Check the page tables aren't freed when accessing
An open debugfs file keeps the KVM structure alive, but does not prevent mmu notifier release from freeing the stage-2 page tables when the VMM’s address space is torn down. Therefore page tables belonging to the mmus could have been freed when a thread opens or reads the ptdump files. Take the mmulock and check mmu->pgt is still alive before accessing the page tables.
Also for the iparange file and stage2levels file, switch from keeping the pointer to the page tables to keeping the pointer to the mmu.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.118 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.64 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.118-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.118-1Fixed in 7.3.4-1 - Compensating control
For the KVM arm64 ptdump files, including ipa_range and stage2_levels, keep a pointer to the mmu rather than to the page tables; take mmu_lock and check that mmu->pgt is still alive before accessing the page tables.
Event History
Frequently Asked Questions
Who is exposed to this issue?
Systems using KVM on arm64 and accessing its debugfs ptdump-related files are exposed. The affected files include ptdump files, ipa_range, and stage2_levels.
What condition triggers the vulnerability?
A thread must open or read the relevant debugfs files while the VMM's address space is being torn down. In that situation, mmu notifier release can free stage-2 page tables even though the open debugfs file keeps the KVM structure alive.
How can I determine whether a system has the fix?
Check whether the kernel includes the change that takes mmu_lock and verifies that mmu->pgt is still alive before accessing page tables, while changing ipa_range and stage2_levels to retain the MMU pointer rather than a page-table pointer. The provided stable references identify commits containing the fix.