KVM Escape CVE-2026-99312: One VM Read 127 GB of Host RAM

By 13 min read
KVM escape CVE-2026-99312: a guest VM on an AMD host reaching host physical memory through nested virtualization

A single rented cloud VM was able to map about 127 GB of its host server’s physical memory. That is what Terra Security researcher Oren Yomtov showed on a DigitalOcean Droplet with CVE-2026-99312, a KVM bug that sat in the Linux kernel for just under four years.

In short: the CVE-2026-99312 KVM escape lets root inside a guest VM read and write host memory, but only on AMD hosts with nested virtualization switched on. The fix shipped on 17 November 2026 in Linux 7.3.5, 6.18.64 and 6.12.118, and turning nested virtualization off closes the path if you cannot patch yet.

What is CVE-2026-99312?

CVE-2026-99312 is a use-after-free in the nested virtualization code of KVM, the hypervisor built into the Linux kernel, on AMD processors. A use-after-free is a bug where code keeps using a piece of memory after it has been handed back and reused for something else.

In this case the stale reference is a pointer to a page table. When the freed page is reused, a guest VM ends up controlling part of the address translation the processor performs for it, and from there it can reach host physical memory. DigitalOcean, whose cloud was used for the proof of concept, says this includes memory belonging to other customers’ VMs on the same host.

The upstream fix is commit c7c288d178cb, titled “KVM: x86: Unconditionally reset MMU context when emulating INIT”. Severity scores differ by who you ask: the kernel CVE team and Ubuntu rate it 8.8, while Red Hat’s preliminary score is 7.8.

Key facts at a glance

Item Detail
CVE CVE-2026-99312
Component Linux KVM, nested SVM (AMD)
Bug class Use-after-free (Red Hat maps it to CWE-825, expired pointer dereference)
Attacker needs Root inside a guest VM on a vulnerable host
Host condition AMD CPU, kvm_amd nested enabled, unpatched host kernel
Intel affected No
Fixed upstream 7.3.5, 6.18.64, 6.12.118 (17 Nov 2026), 7.4-rc2
Found by Oren Yomtov, Terra Security
Exploited in the wild No reports as of late November 2026
Four headline numbers for the KVM escape: 127 GB mapped, 32 bytes written, about four years, three kernels.
The proof of concept read 127 GB of host RAM from one Droplet and wrote 32 bytes into a host kernel page on a test server. Data: Terra Security, DigitalOcean.

What is nested virtualization, and why does it matter here?

Nested virtualization lets a VM run its own hypervisor and start VMs inside itself. Developers use it for CI pipelines, Android emulators, sandboxes and training labs, and cloud providers sell it as a feature.

The cost is attack surface. With nesting on, the host hypervisor has to emulate hardware virtualization for the guest, and that emulation code is complex, rarely exercised and reachable from inside the guest.

The Linux kernel documentation says the nested module parameter has been enabled by default for both Intel and AMD since kernel 4.20, though distributions can override it. The Hacker News, citing VirtFusion’s operator guide, also says nesting is on by default in kvm_amd. In other words, many self-managed AMD hosts may have it switched on without anyone deciding to.

What is a nested page table?

A nested page table (NPT) is AMD’s hardware feature for translating a guest’s memory addresses into real host memory addresses. KVM keeps one per guest in host kernel memory, and the processor finds it through a pointer stored in each virtual CPU’s control block. Terra describes the walk as four levels of 9-bit indices plus a 12-bit page offset.

As long as that pointer names a page KVM still owns, the guest stays confined. CVE-2026-99312 breaks exactly that assumption.

How does the CVE-2026-99312 KVM escape work?

Terra’s write-up explains the mechanism at a conceptual level. No exploit code has been published, and none is needed to understand the defensive picture.

Step 1: a nested VM is stopped by INIT

INIT is a processor signal that resets a CPU to a known state. When a nested VM stops, KVM is supposed to switch the virtual CPU back to the outer VM’s nested page table. According to Terra and the CVE description, one way of stopping the nested VM, an INIT that arrives while the inner guest runs with paging off, skips that update.

Step 2: the pointer outlives its page

The virtual CPU keeps a pointer to a nested page table page that has already been freed. KVM later reuses that freed page as a bottom-level page table holding addresses of the guest’s own pages.

Step 3: the guest controls the translation

The processor still treats the reused page as a higher-level table. It therefore reads a page the guest owns as part of the translation path, which means the guest can supply its own entries. Terra says this let them point the translation at arbitrary host physical memory.

Six-stage flow showing how a stale nested page table pointer leads from guest root to host memory.
An INIT that stops the nested VM leaves a pointer to a freed page, and the guest ends up writing its own page table entries. Data: Terra Security, Debian, DigitalOcean.

Why Intel hosts are safe

The CVE text, as shown on Debian’s security tracker, says the bug only affects nested SVM because INIT is an unconditional intercept on Intel VMX. The Hacker News and Red Hat also state that Intel-based KVM is not affected by this flaw.

What did the researchers actually prove?

Terra and DigitalOcean describe two separate demonstrations, and the difference matters.

  • Read on production cloud. On a DigitalOcean Droplet, Terra pointed a forged table at about 127 GB of host RAM, mapped read-only, and scanned it for the host kernel’s version banner. That proves the guest could see host memory on a real shared platform.
  • Write on a private server. The write test ran on a bare-metal AMD server with no other customers. DigitalOcean says Terra wrote 32 bytes into a live host kernel page, and Terra says a witness module loaded into the host kernel confirmed the change.

Neither source claims code execution on DigitalOcean’s production hosts, and the researchers did not write to shared infrastructure. Read access alone is still serious: host memory on a multi-tenant server can contain other tenants’ data and keys.

DigitalOcean says it validated the exploit on its own hosts, treated it as critical, built a live patch from the upstream fix and rolled it across its fleet. It told customers that no action is needed for Droplets.

Where did the bug come from?

The flaw was introduced by a security fix. The 2022 patch for CVE-2022-3344, an earlier bug where a reset path left a virtual CPU on a nested VM’s control block after it was freed, switched back to the outer control block but missed the nested page table pointer. The Hacker News says that code entered Linux 6.1 in 2022 and was carried into the 5.15.81 and 6.0.11 releases.

Terra links this to its own research, which it calls PatchSlop, finding that 3.2% of kernel CVEs were introduced by fixes to other CVEs. That figure is Terra’s own and has not been independently checked here.

Timeline from the 2022 CVE-2022-3344 fix to the November 2026 kernel releases and CVE publication.
The bug lived in the kernel for just under four years, but went from report to stable fix in under a month. Data: Terra Security, The Hacker News, DigitalOcean.

Disclosure timeline

Date Event Source
2022 CVE-2022-3344 fix introduces the flaw Terra, The Hacker News
21 Oct 2026 Reported to Linux KVM maintainers Terra
2 Nov 2026 Fix merged to mainline (c7c288d178cb) Terra, The Hacker News
9 Nov 2026 First tagged in 7.4-rc2 Terra, DigitalOcean
17 Nov 2026 Stable 7.3.5, 6.18.64 and 6.12.118 released Terra, DigitalOcean
18 Nov 2026 CVE published, Terra write-up out Terra, Ubuntu
19 Nov 2026 DigitalOcean publishes its post DigitalOcean
25 Nov 2026 Ubuntu still lists its kernels as vulnerable Ubuntu

The bug was reported through DigitalOcean’s bug bounty program, and DigitalOcean says it encouraged Terra to report upstream.

Who is affected by CVE-2026-99312?

You are exposed if all of these are true: the host runs KVM on an AMD processor, the kvm_amd nested parameter is enabled, the host kernel lacks the fix, and an untrusted party has root inside a guest that can start its own VM. Network access to the host alone is not enough.

Cloud customers

Terra says many cloud providers it surveyed were not vulnerable because they did not enable nested virtualization on AMD. It did not name them. DigitalOcean was vulnerable and has patched. If you rent VMs elsewhere, ask your provider whether AMD nesting was enabled and when the fix reached its hosts; you cannot fix the host yourself.

Self-hosted KVM, Proxmox-style and private clouds

Operators running their own AMD virtualization hosts carry the risk directly, especially when they hand out root to customers, students or CI jobs. Patching guest kernels does nothing: the vulnerable code runs on the host.

Distribution status

Distribution Status reported Source and date
Upstream stable Fixed in 7.3.5, 6.18.64, 6.12.118 Terra, DigitalOcean
Debian trixie fixed in 6.12.118-1 (DSA-6652-1), forky and sid fixed, bookworm vulnerable Debian tracker, read 29 Nov
Ubuntu 22.04, 24.04, 26.04, 26.10 vulnerable (including AWS, Azure and GCP kernels); 20.04 and older not affected Ubuntu, updated 25 Nov
RHEL EL9 and EL10 affected with fix deferred, EL8 not affected The Hacker News, 20 Nov

Sources disagree on some of this. The Hacker News described Debian as having a fix only in unstable, while the Debian tracker now shows trixie fixed, which suggests the status moved after that article. Red Hat’s own CVE page did not show a product table when read for this article, so treat the RHEL row as secondhand.

Why do the severity scores disagree?

The kernel CVE team and Ubuntu rate CVE-2026-99312 at 8.8. Red Hat’s current preliminary score is 7.8, with a vector that marks attack complexity as high. The Hacker News reported that Red Hat first rated it Moderate at 5.6, treating the impact as denial of service only.

Bar chart comparing CVSS scores of 8.8, 8.8, 7.8 and 5.6 for the same KVM bug.
Red Hat's first score treated the bug as denial of service only, while the demonstrated read and write access supports the higher ratings. Data: CVE.org, Ubuntu, Red Hat, The Hacker News.

The lesson for vulnerability management is simple: a single vendor score can understate a hypervisor escape by a wide margin. DigitalOcean, which actually ran multi-tenant hosts exposed to it, treated it as critical. If your patch priorities key off one vendor’s number, re-score this one against your own environment.

How does it compare with Januscape and other KVM escapes?

CVE-2026-99312 is the second KVM memory-management escape through nested virtualization disclosed in 2026, according to the Cloud Security Alliance. The first was Januscape in July.

  CVE-2026-99312 Januscape (CVE-2026-53359)
Disclosed 18 November 2026 July 2026 (fixes 4 July)
Found by Oren Yomtov, Terra Security Hyunwoo Kim, via Google’s kvmCTF
Root cause Stale nested page table pointer after INIT Shadow page reuse without checking the page’s role
Bug age Just under 4 years (2022 fix) About 16 years (2010 commit)
CPUs AMD only Intel and AMD
Requirement Guest root, nested enabled on AMD host Guest root, nested enabled on host
Companion CVE None reported CVE-2026-46113, must be patched together

The pattern is the same in both: an old, rarely tested corner of the nested virtualization code, reachable by any guest root user once nesting is enabled. For other virtualization-layer attacks on this site, see the Xen Orchestra authentication bypass and the GhostFrame ESXi implant. For another November case where a fresh patch quickly became a roadmap for attackers, see OpenSSH sshole and its 40 hours from patch to root.

How do you detect CVE-2026-99312 exploitation?

You mostly cannot detect it after the fact, and the sources say so. The Hacker News reports, citing VirtFusion, that there is no guidance for detecting a past attempt, and Terra publishes no indicators or log signatures. The sources publish no MITRE ATT&CK mapping; the closest technique is T1611, Escape to Host.

What defenders can do is find exposure and watch the preconditions.

Find exposed hosts

  1. List every KVM host and its CPU vendor. Only AMD matters for this CVE.
  2. On each AMD host, read /sys/module/kvm_amd/parameters/nested. A value of 1 or Y means nesting is on.
  3. Compare the running host kernel against the fixed versions and your distribution’s tracker.

Find guests that can use it

A guest can only start a nested VM if the host exposes the AMD virtualization flag (svm) to it. CSA recommends checking the CPU models passed to guests. In QEMU, a CPU model that passes host features through, such as -cpu host, exposes it. Inside a Linux guest, the svm flag appearing in /proc/cpuinfo tells you the guest can try.

Watch for unusual nested activity

Treat a guest that suddenly starts running its own hypervisor, without a known business reason, as worth a look. Host kernel warnings or crashes in KVM on AMD hosts are also worth correlating with the guest that was running. These are general hunting ideas, not indicators from the sources.

How do you mitigate CVE-2026-99312?

  1. Patch the host kernel. Move AMD KVM hosts to 7.3.5, 6.18.64, 6.12.118 or a distribution kernel that carries commit c7c288d178cb, then reboot or live patch. Guest updates do not help.
  2. Disable nesting where you cannot patch yet. Set options kvm_amd nested=0 in a file under /etc/modprobe.d/. Red Hat notes the module can only be reloaded once all VMs are shut down, so plan a maintenance window or reboot.
  3. Make nesting opt-in. Keep nested=0 as the default and enable it only on hosts that run workloads which need it, isolated from untrusted tenants.
  4. Stop exposing svm by default. Review VM definitions that pass the host CPU through, and use CPU models without the virtualization flag for ordinary tenants.
  5. Ask your cloud provider. Find out whether AMD nesting was enabled on your instance types and when the fix landed. If it was enabled and unpatched while you held secrets in memory on shared hosts, CSA suggests considering secret rotation.
  6. Re-score internally. Do not let a 5.6 or 7.8 label push a hypervisor escape down the queue on multi-tenant AMD hosts.

What is still unknown?

  • Exact affected range. Terra does not give one. The Hacker News says 6.1 onward plus 5.15.81 and 6.0.11, but CSA notes that the fix status for the 6.6, 6.1 and 5.15 long-term lines was not reported in its sources.
  • Which clouds were exposed. Terra says many providers it surveyed were safe but names none, and no other provider has said it was affected.
  • Red Hat’s final rating and fix dates. Red Hat’s score is marked preliminary and has already moved once.
  • Whether anyone used it before disclosure. Exploitation would leave little trace, and no detection method has been published. Absence of reports is not proof of absence.
  • Whether a public exploit will appear. None had been published as of late November 2026. The fix commit and the write-up together describe the mechanism, which shortens the work for anyone who wants to build one.

The bottom line

CVE-2026-99312 shows that one VM with root and a nested hypervisor could read a whole host’s memory on a major cloud, using a bug that a 2022 security fix left behind. The exposure is narrow, AMD hosts with nesting enabled, but on those hosts it is serious. Patch the host kernel, and treat nested virtualization as a feature you switch on deliberately rather than a default you inherit.

Sources

This article is written for defenders and authorised security testers. Only test systems you own or have written permission to assess.

Frequently asked questions

What is CVE-2026-99312?

CVE-2026-99312 is a guest-to-host escape in the Linux KVM hypervisor on AMD processors with nested virtualization enabled. A stale nested page table pointer lets root inside a guest VM gain read and write access to host physical memory, including memory of other VMs on the same host.

Is CVE-2026-99312 exploited in the wild?

No exploitation outside research had been reported as of late November 2026, according to VirtFusion as cited by The Hacker News. No exploit code has been published, and none of the sources lists the flaw in CISA's Known Exploited Vulnerabilities catalog.

Does CVE-2026-99312 affect Intel processors?

No. The bug sits only in KVM's nested support for AMD SVM. On Intel VMX, INIT is always intercepted, so the vulnerable path does not exist, according to the CVE description on Debian's tracker.

Which Linux kernel versions fix CVE-2026-99312?

The upstream fix, commit c7c288d178cb, shipped on 17 November 2026 in stable 7.3.5 and long-term 6.18.64 and 6.12.118, and is in 7.4-rc2. Distribution kernels need their own updates, so check your vendor's tracker.

How do I check if my KVM host is vulnerable?

Check whether the host has an AMD CPU and whether /sys/module/kvm_amd/parameters/nested reads 1 or Y. If it does and the kernel lacks the fix, the host is exposed to any guest whose root user can run a nested VM.

How do I mitigate CVE-2026-99312 without patching?

Disable nested virtualization on AMD hosts by setting the kvm_amd module option nested=0, for example in a file under /etc/modprobe.d/, then reload the module or reboot. Red Hat notes the module can only be reloaded after all VMs are shut down.

Do I need to do anything on DigitalOcean?

DigitalOcean says no customer action is needed for Droplets. It validated the bug, built a live patch from the upstream fix and rolled it across its fleet.

What is nested virtualization?

Nested virtualization lets a virtual machine run its own hypervisor and start VMs inside itself. It is used for CI pipelines, sandboxes and labs, but it exposes more of the host hypervisor's code to guests.

Keep reading

CVE-2026-99312KVM escapeAMD SVMnested virtualizationLinux kernelcloud securityvulnerability management