The Wire · Showcase
KVM SHADOW PAGING USE-AFTER-FREE CLOSES 16-YEAR-OLD HOLE
By RepoJournal · Filed · About Linux
The kernel patched a critical use-after-free in KVM's x86 shadow MMU that has been exploitable since the first KVM series shipped — a bug that only surfaces when guest page tables change between VM entries.
Paolo Bonzini merged three x86 KVM fixes overnight that address a cascade of interrupt and memory management bugs [2]. The most severe is the shadow paging use-after-free [1], which stems from a fundamental assumption break: the shadow MMU calculates guest frame numbers using the shadow page's base GFN plus the SPTE index, but this math fails when guest page tables are modified mid-execution. The same batch fixes nested EPT/NPT hypercall validation [3] that could allow L2 guests to invoke slow flush operations when nested paging isn't enabled, and corrects the IRR interrupt reporting logic [4] [5] that was silently dropping pending interrupts during nested VM stress tests. These are production-critical fixes — the shadow paging bug alone has had 16 years to spread, and the interrupt reporting flaw causes hard-to-debug warning cascades in nested virtualization setups.
Action items
- → Pull latest KVM fixes from torvalds/linux before next stable release torvalds/linux [immediate]
- → Monitor nested VM interrupt handling if running hypervisors at scale torvalds/linux [monitor]
References
- [1] KVM: x86: Fix shadow paging use-after-free due to unexpected GFN torvalds/linux
- [2] Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm torvalds/linux
- [3] KVM: x86: check for nEPT/nNPT in slow flush hypercalls torvalds/linux
- [4] KVM: x86: Fix misleading variable names and add more comments for PIR=>IRR flow torvalds/linux
- [5] KVM: x86: Do IRR scan in __kvm_apic_update_irr even if PIR is empty torvalds/linux
FAQ
- What changed in Linux on May 4, 2026?
- The kernel patched a critical use-after-free in KVM's x86 shadow MMU that has been exploitable since the first KVM series shipped — a bug that only surfaces when guest page tables change between VM entries.
- What should Linux teams do about it?
- Pull latest KVM fixes from torvalds/linux before next stable release • Monitor nested VM interrupt handling if running hypervisors at scale
- Which Linux repositories shipped on May 4, 2026?
- torvalds/linux