Linux KVM Flaw Lets Guest VMs Reach Host Memory on AMD Servers With Nested Virtualization


SaveAdd to Google
Linux

CVE-2026-99312 breaks the isolation between a guest virtual machine and its AMD-based KVM host when nested virtualization is enabled. Linux

TORONTO, ON

A vulnerability in KVM, the hypervisor built into the Linux kernel, can let a malicious guest virtual machine break out of its isolation and access the physical memory of the host it runs on, provided the host uses AMD processors and has nested virtualization enabled.

The flaw, tracked as CVE-2026-99312, was discovered by Oren Yomtov of Terra Security and reported through DigitalOcean's bug bounty programe. Fixed stable and long-term support kernels were released on November 17, and the issue was disclosed publicly on November 18 and 19.

What the bug does

KVM keeps a nested page table for each virtual machine that translates guest memory addresses into host physical memory, and each virtual CPU holds a pointer to that table. According to Terra Security's analysis, when an INIT signal stops a nested virtual machine, KVM fails to restore the outer VM's page-table pointer. The pointer is left referencing a page that has already been freed.

Once the kernel reuses that page for something else, the guest can write forged page-table entries into it. Because the processor trusts and follows those entries, the guest gains a path to any physical page on the host.

The root cause is a regression. A 2022 fix for an earlier KVM bug, CVE-2022-3344, restored the outer VM's control block on a reset path but missed the page-table pointer. The vulnerable code has been in the kernel for just under four years. The new fix resets the relevant memory-management state on every INIT.

Demonstrated impact

The researchers showed the bug is far from theoretical. In a read test on a DigitalOcean Droplet, they mapped roughly 127 GB of host RAM read-only from inside a guest and recovered the host kernel's version banner. In a separate write test on their own bare-metal AMD server, with no other customers present, a guest wrote 32 bytes of its choosing into a live host kernel page.

On a shared cloud host, read access alone could expose memory belonging to other tenants' virtual machines, including encryption keys, credentials and application data. Write access to host kernel memory is a stepping stone to a full guest-to-host escape.

How serious is it?

Severity ratings differ. The Linux kernel CVE Numbering Authority scored the flaw 8.8, with high impact to confidentiality, integrity and availability. Red Hat's preliminary assessment is more conservative, rating it Moderate at 5.6 and treating it as a denial-of-service issue only. DigitalOcean treated it as critical for its shared infrastructure and live-patched its fleet.

Several conditions limit exposure:

  • AMD only. The vulnerable code sits in KVM's AMD nested virtualization support (SVM). Intel-based KVM hosts are not affected.
  • Nested virtualization must be enabled. Nested virtualization lets a guest run its own hypervisor. According to VirtFusion's operator guidance, it is enabled by default in the kvm_amd module, so unpatched AMD hosts are exposed unless an administrator has turned it off.
  • The attacker must control a guest. Network access alone is not enough; the researchers' tests required root inside an attacker-controlled VM, a condition that is trivially met on rented cloud instances.

There are no reports of exploitation outside research, and no public exploit code has been released. There is also no guidance for detecting whether an attempt has already taken place.

Who in Canada should care

KVM underpins a large share of the virtualization market, from hyperscale clouds to small regional hosts. In Canada, that includes domestic VPS and cloud providers, managed service providers that host client workloads, universities and research computing centres, and the many small businesses and homelab operators running KVM-based platforms such as Proxmox VE on AMD EPYC or Ryzen hardware.

The risk is highest for multi-tenant environments where untrusted customers can launch their own VMs. A single malicious tenant on a vulnerable host could read memory belonging to every other customer on the same physical machine. For providers serving Canadian public-sector or regulated clients, that raises obvious data residency and privacy questions: under the Personal Information Protection and Electronic Documents Act (PIPEDA) and provincial laws such as Quebec's Law 25, a cross-tenant memory leak exposing personal information could trigger breach assessment and notification obligations.

The Canadian Centre for Cyber Security (Cyber Centre) has repeatedly urged organizations to treat hypervisors and virtualization management planes as critical assets, given that a single compromise can expose every workload they host.

Part of a busy year for KVM

CVE-2026-99312 is the latest in a string of KVM isolation bugs disclosed in 2026. In July, researcher Hyunwoo Kim disclosed Januscape (CVE-2026-53359), a 16-year-old flaw in KVM's shadow memory management that affected both Intel and AMD and could be triggered from a guest. Kim followed with Zapscape (CVE-2026-64561) in August and an ARM64 nested virtualization flaw (CVE-2026-89775) in September. Nested virtualization has been the common thread in most of them, and security teams may want to reconsider whether the feature needs to be enabled at all on hosts that run untrusted workloads.

Patch status

The vulnerable code entered the 6.1 kernel in 2022 and was backported into 5.15.81 and 6.0.11, so older stable lines and distribution kernels built on them are in range. Fixes landed upstream in stable kernel 7.3.5 and long-term support kernels 6.18.64 and 6.12.118.

At the time of disclosure, distribution support was uneven. Debian listed all releases as vulnerable, with a fix available only in unstable. Ubuntu rated the issue High but had not yet released fixed packages. Red Hat listed Enterprise Linux 9 and 10 as affected with the fix deferred, while Enterprise Linux 8 is not affected. Administrators should check their vendor's tracker for updates.

The disclosure timeline was short: KVM maintainers were notified on October 21, the fix was merged upstream on November 2, fixed kernels shipped on November 17, and technical details were published the next day.

What administrators should do

Updating guest operating systems does not help. The fix must be applied to the host kernel, followed by a reboot or live patch.

If a patched kernel is not yet available, disabling nested virtualization on AMD hosts removes the attack path:

  1. Check whether it is enabled: cat /sys/module/kvm_amd/parameters/nested (a value of 1 or Y means enabled).
  2. Add options kvm_amd nested=0 to a file in /etc/modprobe.d/.
  3. Reboot the host (the setting cannot be changed while VMs are running), then confirm the kernel version with uname -r and recheck the nested parameter.

Be aware that tenants or workloads relying on nested virtualization, such as CI systems that run emulators or customers running their own hypervisors, will lose that capability.

The vulnerability in this story

  1. 8.8 High CVE-2026-99312 (cve.org, opens in a new tab)

    In the Linux kernel, the following vulnerability has been resolved: KVM: x86: Unconditionally reset MMU context when emulating INIT…

    Published Nov 18, 2026

Scores and dates: NVD (not endorsed by the NVD). Each ID opens its record on cve.org.

About the author

Editor's Picks

The best of cybersecuritynews.ca, delivered to you weekly.

On Display
Sonic6

SonicWall Tells Customers to Pull Gen 6 Firewalls Off the Internet

Staples Canada says attackers accessed customer records on its Staples Print website between November 1 and 5, 2026.

Staples Canada Confirms Breach of Print Website, Customer Contact Details and Encrypted Passwords Exposed

Air Creebec, which serves Cree communities in Northern Quebec and Ontario, says its aircraft and flight systems were unaffected by the intrusion into its administrative network.

Air Creebec Confirms Cyber Intrusion, Employee and Passenger Data Among Stolen Files