Skip to contentSkip to conversation

CVE-2026-99343: KVM: x86/mmu: Bug the VM if KVM attempts to walk more levels than the MMU has

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

KVM: x86/mmu: Bug the VM if KVM attempts to walk more levels than the MMU has

Extend the "EFER.LMA && !CR4.PAE" check, which exists largely to guard against KVM configuring a paging32 MMU with more than 2 levels of paging, with a very explicit check for exactly that: that KVM isn't trying to walk more levels of paging than the MMU template provides. I.e. harden KVM against all bugs that would cause KVM to generates accesses beyond the bounds of guest_walker's arrays, regardless of how KVM ended up with the misconfigured MMU.

Note, don't use w->cpu_role.base.level directly as the paging64 template only provides two levels of page tables for PAE paging on 32-bit hosts, and handles the third level by manually emulating the PDPTR access.

The Linux kernel CVE team has assigned CVE-2026-99343 to this issue.

Affected and fixed versions
===========================

	Fixed in 6.12.117 with commit d6f3877eabf159167ee9972d627396412a04ac74
	Fixed in 6.18.61 with commit 54afd548602bb96b3fbb0b4b11ccbbfeb5fb46fc
	Fixed in 7.3.2 with commit 73f427e5afd94edd5d0e7cdddc2ecc794f28c492
	Fixed in 7.4-rc1 with commit 115f9405a2ed6d78ee7ad8436bdd638743f6d1d4

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-99343

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/x86/kvm/mmu/paging_tmpl.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/d6f3877eabf159167ee9972d627396412a04ac74
	https://git.kernel.org/stable/c/54afd548602bb96b3fbb0b4b11ccbbfeb5fb46fc
	https://git.kernel.org/stable/c/73f427e5afd94edd5d0e7cdddc2ecc794f28c492
	https://git.kernel.org/stable/c/115f9405a2ed6d78ee7ad8436bdd638743f6d1d4