Linux KVM CVE-2026-99312 lets guest VMs read host memory on AMD hosts
A use-after-free in KVM's nested virtualization on AMD hosts allowed a guest to access host memory, including other customers' VMs.
Reported by The Hacker News
First reported Summary updated
- Public PoC
- No
- Exploited
- No
- CVSS
- 8.8 High
What happened
Researchers found a flaw in KVM, the Linux kernel hypervisor, that let a guest VM read about 127 GB of a cloud server's memory on DigitalOcean.1
The flaw, tracked as CVE-2026-99312, affects only hosts with AMD processors and nested virtualization enabled.1
The bug is a use-after-free: when an INIT signal stops a nested VM, KVM skips restoring the outer VM's page-table pointer, leaving it pointing to freed memory.1
The flaw was introduced by a 2022 fix for CVE-2022-3344 that missed the page-table pointer, and the error remained in the kernel for just under four years.1
The fix makes KVM reset that memory-management state on every INIT.1
Who is affected
- Linux kernel KVM on AMD hosts with nested virtualization enabled, Kernels from 6.1 (2022) and carried into 5.15.81 and 6.0.11; distribution kernels built on them1
Is there a public exploit?
None known No exploit code has been published.1
Exploited in the wild?
Not yet There are no reports of the flaw being used outside research.1
What to do
- Update the host kernel to a fixed version: stable 7.3.5, long-term 6.18.64 or 6.12.118.1
- If the host cannot be updated yet, turn nested virtualization off by adding options kvm_amd nested=0 to the module configuration.1
- Reboot the host after installing a fixed kernel or changing the setting, because the setting cannot change while VMs are running and a new kernel does not protect until reboot.1
- Check whether nested virtualization is on with cat /sys/module/kvm_amd/parameters/nested; a value of 1 or Y means it is on.1
For bug hunters
This is a use-after-free in a hypervisor's memory-management state, reachable when a nested guest triggers a reset path. In bug bounty programs, similar lifetime bugs appear in virtualisation, container runtimes and any code that caches per-CPU or per-VM pointers across reset or teardown. Look for paths where a reset or error handler skips reinitialising a pointer that is later dereferenced. Test nested or chained execution contexts where state from an outer context can outlive an inner one.
What to test
- Trigger reset or INIT signals in nested virtualisation and check whether outer context pointers are restored.
- Exercise error and teardown paths that free memory while a cached pointer remains reachable.
- Test per-CPU or per-VM state after a context switch or reset to see if stale data is used.
- Look for code that conditionally skips reinitialisation based on paging or mode flags.
Written by bugbounty.wiki with AI from its source. Every statement above comes with a quote we checked against the source it cites (the numbers link to it); anything we could not check was left out. It can still be wrong, so read the coverage before relying on a detail.
Coverage
The article this story is based on. Each headline opens the outlet's own article.
-
1