Database/Kernel, userspace & hypervisor

Linux kernel (arch/x86/kvm/mmu): Shadow-page lookup reuses a page without comparing its role, so a direct (2MB) shadow
Impact
Shadow-page lookup reuses a page without comparing its role, so a direct (2MB) shadow page gets reused for a 4KB indirect mapping. The rmap entry recorded under the walked GFN is never removed when the page is zapped, and after the memslot is dropped the freed shadow page is still reachable through that stale rmap. Any later rmap walk - dirty logging, MMU notifier invalidation - dereferences freed host kernel memory.
Who can reach it
Needs the shadow MMU plus a writer that KVM's write tracking does not see: the guest's PDE is changed from outside the guest and then a memslot is deleted. In practice that means a process holding /dev/kvm acting as its own VMM - a tenant with nested virtualization enabled, or any local user with /dev/kvm - not a container tenant with no KVM access. The MMU-notifier trigger (e.g. MADV_DONTNEED, host memory reclaim) then fires on its own.
What to do
Update to a kernel with the referenced stable commits; take it together with CVE-2026-46113, which is the first half of the same hole. Interim: do not hand /dev/kvm to tenants and disable nested virtualization on unpatched nodes.
References
Related entries
- Linux kernel (arch/x86/kvm/mmu): A guest that creates a hugepage mapping extending below the bounds of a memslot makesCVE-2026-63807 · Linux kernel (arch/x86/kvm/mmu)High
- Linux kernel (arch/x86/kvm/mmu): If reclaiming shadow pages invalidates the root a fault is being serviced against, KVMCVE-2026-64561 · Linux kernel (arch/x86/kvm/mmu)High
- Linux kernel (arch/x86/kvm/mmu): The TDP MMU skipped invalid roots when unmapping a GFN range, so KVM could still holdCVE-2021-47639 · Linux kernel (arch/x86/kvm/mmu)High
- Linux kernel (arch/x86/kvm/mmu): When guest memory is backed by a VM_PFNMAP mapping, KVM derived the target page frameCVE-2022-49562 · Linux kernel (arch/x86/kvm/mmu)High
- Linux kernel (arch/x86/kvm/mmu): The shadow MMU derives GFNs for direct shadow pages arithmetically, which breaks ifCVE-2026-46113 · Linux kernel (arch/x86/kvm/mmu)High
- Linux KVM - GHCB v2+ scratch area location enforcement: KVM did not require the GHCB software scratch area to liveCVE-2026-53360 · Linux KVM - GHCB v2+ scratch area location enforcementHigh
This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.