Published: 2026-11-28
Categories: Cloud Infrastructure Security
CVE-2026-99312: KVM Nested Virtualization Escape on AMD Hosts
Key Takeaways
CVE-2026-99312 is a use-after-free vulnerability in the Linux Kernel-based Virtual Machine (KVM) hypervisor. It affects AMD hosts that have nested virtualization enabled. An attacker with root privileges inside a guest virtual machine can make the host CPU walk a nested page table that KVM has already freed. The guest can then forge page table entries that point at arbitrary host physical memory [1][2][3]. Terra Security researcher Oren Yomtov reported the flaw through DigitalOcean’s bug bounty program. In the disclosed demonstration, a single DigitalOcean Droplet mapped about 127 GB of host RAM read-only. On a dedicated bare-metal AMD server, the researcher wrote 32 chosen bytes into a live host kernel page [1][2]. Because this is a read and write primitive against host memory, the bug crosses the hypervisor boundary that public cloud multi-tenancy depends on.
The fix is upstream commit c7c288d178cb, titled “KVM: x86: Unconditionally reset MMU context when emulating INIT.” It was merged to mainline on November 2, 2026, first tagged in v7.4-rc2 on November 9, and shipped on November 17 in stable 7.3.5 and long-term kernels 6.18.64 and 6.12.118 [1][2][5]. The sources cited here do not report fix status for the older 6.6, 6.1, and 5.15 long-term branches, even though the vulnerable code reached the 5.15 line. Distribution coverage was also uneven at the time of writing. Debian had fixed trixie through DSA-6652-1, but bookworm remained vulnerable. Ubuntu’s tracker listed its supported kernels from 22.04 LTS through 26.10 as vulnerable, with no released fix, as of November 25 [5][6]. Severity ratings also differ by source. The CVE.org record and Ubuntu show a CVSS 3.1 score of 8.8, a score The Hacker News attributes to the kernel CVE team, while Red Hat’s preliminary score is 7.8 [3][4][6][14].
A key practical point is that the vulnerable code path exists only when the kvm_amd module is loaded with nested virtualization enabled and the guest’s virtual CPU exposes the SVM feature. Operators that cannot patch and reboot immediately can close the path by setting kvm_amd nested=0, at the cost of breaking guest-hosted hypervisors [1][4][15]. Updating guest kernels does nothing, because the flaw and its remedy are entirely on the host [3]. Cloud tenants cannot see whether their provider’s hosts are affected, so they should ask providers directly whether AMD nested virtualization is enabled and when hosts were patched.
The bug was introduced by the 2022 fix for CVE-2022-3344, an earlier KVM INIT-handling flaw, and remained in the kernel for just under four years [1][2]. Terra’s companion research found that about 3.2% of kernel CVEs were introduced by the fix for another CVE [1][2]. This CVE follows the July 2026 Januscape disclosure (CVE-2026-53359) [10]. Two KVM memory-management escapes reachable through nested virtualization in a single year suggest that this code path deserves closer scrutiny than its maturity might imply.
Background
Hardware-assisted virtualization on AMD processors, known as Secure Virtual Machine (SVM) or AMD-V, uses a per-vCPU control structure called the Virtual Machine Control Block (VMCB). A field in the VMCB, often called nCR3, gives the host physical address of the top-level page of the nested page table (NPT). The NPT translates guest physical addresses to host physical addresses. This is the structure that confines each guest to its own memory, so its integrity is the foundation of tenant isolation in KVM-based clouds [2].
Nested virtualization adds another layer. A guest (L1) runs its own hypervisor, which launches its own guests (L2). KVM on the physical host (L0) emulates virtualization instructions for L1 and keeps separate control blocks and page table contexts for L1 and L2 execution. Each switch between these levels must restore every piece of state the CPU will consult afterward, including the NPT pointer. Cloud providers offer nested virtualization to meet real customer needs, such as running emulators, development and test sandboxes, and other workloads that require a hypervisor inside a cloud instance [8][9]. The trade-off is that it adds substantial emulation logic to the host kernel’s attack surface.
According to the VirtFusion operator guidance cited by The Hacker News, nested virtualization is on by default in the kvm_amd module [3]. The kernel’s own documentation for running nested guests likewise states that the nested parameter has been enabled by default for both Intel and AMD since Linux v4.20, while noting that distributions may override that default [15]. On many hosts, then, exposure depends on whether the operator explicitly disabled nesting, not on whether they chose to enable it. A guest can run its own accelerated hypervisor only if its virtual CPU model passes the hardware virtualization feature through, for example with QEMU’s -cpu host or a named CPU model with the feature explicitly enabled [15]. On AMD hosts, that feature is svm. Public cloud policies differ. Terra reported that “many cloud providers we surveyed were not vulnerable because they did not enable nested virtualization on AMD,” without naming the providers surveyed [2]. AWS launched nested virtualization on virtual EC2 instances in February 2026 on the C8i, M8i, and R8i instance types [8]. These are Intel-based families, which this CVE does not affect, although AWS has not published an AMD-specific statement. Google Cloud’s documentation, by contrast, describes exposing either Intel VT-x or AMD-V instructions to VMs for nested virtualization [9]. Because providers’ hypervisor configurations are not visible to tenants, provider-specific statements are the most reliable indicator of exposure.
The disclosure timeline was short and coordinated. Terra reported the issue to the KVM maintainers on October 21, 2026, at DigitalOcean’s encouragement. The fix was merged on November 2, and stable and long-term kernels shipped on November 17. The CVE and Terra’s technical write-up were published on November 18 [1][2][3]. DigitalOcean published its own account on November 19. DigitalOcean states that it treated the issue as critical, built a live patch from the upstream fix, and was rolling it across its fleet, with no action required from Droplet customers [1].
Security Analysis
Root Cause
The flaw lies in how KVM emulates an INIT signal, a processor reset, when that signal arrives while a vCPU is executing a nested (L2) guest. According to the kernel CVE description, KVM’s MMU page role includes a guest_mode flag that distinguishes L1 from L2 contexts. When an INIT arrives while L2 is running with paging disabled (CR0.PG=0), KVM leaves nested mode and resumes L1. It skipped the MMU context reset because it judged one unnecessary, and so it continued running L1 with a stale MMU context [5][6]. In practical terms, L1’s NPT pointer was never restored. It kept pointing at a nested page table page that KVM had already freed [1][2]. The CVE text states that the bug “only affects nested SVM as INIT is an unconditional intercept on VMX,” which is why Intel hosts are not exposed [5][6]. Red Hat classifies the weakness as CWE-825, Expired Pointer Dereference [4].
The history of the bug illustrates how hard state handling in nested virtualization is. In 2022, KVM’s handling of nested execution was found to be flawed, an issue tracked as CVE-2022-3344 [7]. As Terra describes it, an INIT received during nested execution left the vCPU on L2’s control block, which was then freed. The 2022 fix switched the CPU back to L1’s control block before anything was freed [2]. In DigitalOcean’s words, that fix “repaired one problem and missed this pointer” [1]. The Hacker News reports that the affected code entered the 6.1 kernel in 2022 and was backported into the 5.15.81 and 6.0.11 releases. Long-lived enterprise and LTS kernels in that lineage are therefore in scope [3].
Exploitation Mechanics
Terra’s write-up describes a two-stage technique that turns the dangling pointer into arbitrary host memory access [2]. The attacker first causes the freed page to be reallocated as a bottom-level NPT table for the attacker’s own VM. The stale nCR3 value still names that page, so the CPU treats it as the top-level table. An entry the CPU expects to reference a second-level table instead references a page the guest fully controls. The guest then writes its own page table entries into that page and points them at any host physical address, including host kernel memory and memory belonging to other tenants’ VMs. The fix makes KVM reset the MMU context on every emulated INIT, whatever the paging state [3][5].
Several prerequisites limit who can exploit the flaw. The attacker needs root inside a guest on an AMD host where kvm_amd nested virtualization is enabled and exposed to that guest, and must be able to drive the INIT-during-L2 sequence [2][3][4]. Network access alone is not enough. In multi-tenant infrastructure-as-a-service, however, guest root is not a meaningful barrier. Every customer who rents a VM has it by design. The relevant threat actor is therefore any paying tenant or anyone who has compromised a tenant account. The Hacker News, citing VirtFusion, reported no known exploitation outside research, no published exploit code, and no available guidance for detecting past attempts [3].
Severity and Impact
Published severity assessments vary, as the table below shows. The variation mostly reflects how assessors weigh attack complexity. Red Hat rates attack complexity as High and cites “specific guest execution conditions,” while the CVE.org score rates it Low [4][14].
| Source | Score / Rating | Notes |
|---|---|---|
| CVE.org record (attributed by The Hacker News to the kernel CVE team) | CVSS 3.1 8.8 | AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H [3][4][14] |
| Red Hat (preliminary) | CVSS 3.1 7.8 | AC:H; read and write access to host memory [4] |
| Ubuntu | Priority High; CVSS 8.8 | All supported kernels from 22.04 LTS onward listed vulnerable [6] |
| DigitalOcean | Treated as critical | Fleet live-patched, per DigitalOcean [1] |
The Hacker News reported that Red Hat’s assessment at the time of its article was “Moderate at 5.6,” treating the impact as denial of service only [3]. Red Hat’s CVE page now shows 7.8 with high confidentiality and integrity impact [4]. This suggests the assessment was revised as technical details emerged. Organizations that triaged from early vendor ratings may have under-prioritized the issue and should check that their risk scoring reflects the current assessment.
The demonstrated impact is more informative than the score. The researcher read roughly 127 GB of host RAM from a production cloud instance and wrote chosen bytes into host kernel memory on test hardware [1][2]. These primitives are the typical building blocks of full host compromise, although neither disclosure demonstrated a complete chain. On a shared host, a working exploit could plausibly expose data held in co-resident conventional VMs’ memory, such as key material, credentials, or model weights. Infrastructure that runs AI training and inference on shared AMD EPYC capacity is in the same position as any other tenant workload. Memory-encrypted (SEV-SNP) guests are a partial exception, discussed below.
Remediation Status
At the time of writing, upstream fixes were available for some branches, but downstream packaging trailed them. The table below summarizes status as reported by distribution trackers and secondary reporting, with the source date noted where it differs from the November 28 access date.
| Distribution / Kernel | Status (as of late November 2026) |
|---|---|
| Upstream stable / LTS | Fixed in 7.3.5, 6.18.64, 6.12.118 [1][2]; status of 6.6, 6.1, and 5.15 LTS branches not reported in cited sources |
| Debian | trixie fixed via DSA-6652-1 (6.12.118-1); forky and sid fixed; bookworm vulnerable [5] |
| Ubuntu | 22.04, 24.04, 26.04 LTS and 26.10 vulnerable, including cloud-flavor kernels (aws, azure, gcp); 20.04 and older generic kernels not affected (as of November 25) [6] |
| Red Hat Enterprise Linux | Reported by The Hacker News on November 20 as RHEL 9 and 10 affected with fix deferred, RHEL 8 not affected [3]; check Red Hat’s CVE page for current status [4] |
Three points about the table deserve emphasis. First, Ubuntu’s cloud-flavored kernels being listed as vulnerable refers to those kernels running as hosts. A guest running linux-aws or linux-gcp is not at risk because of its own kernel version. Second, operators running KVM on Debian bookworm, Ubuntu LTS releases, or RHEL 9 and 10 may need the module-parameter mitigation for some time while they wait for vendor packages. Third, operators of hosts on the 6.6, 6.1, or 5.15 LTS lines should confirm through the kernel.org stable announcements or their vendor whether a backport exists before assuming they are covered. Because Red Hat revised its severity after The Hacker News article, the RHEL fix status from that report may also be out of date.
What This Means for Tenant Isolation
CVE-2026-99312 is at least the second widely reported KVM guest-to-host escape of 2026, after Januscape (CVE-2026-53359) in July. Januscape was a use-after-free in the shadow MMU code shared by Intel and AMD implementations [10]. Both bugs sit in KVM’s memory-virtualization logic, and both are most reachable when nested virtualization is enabled. The pattern suggests that nested virtualization amplifies hypervisor attack surface in a way that is largely invisible to tenants and may not appear in their risk models. The shared responsibility model puts hypervisor integrity entirely on the provider. Customers who chose a provider because of hardware-enforced VM isolation may not know whether that provider exposes nested SVM, which kernel lineage its hosts run, or how fast it can live-patch them.
Confidential computing technologies such as AMD SEV-SNP encrypt guest memory with keys the hypervisor cannot read. In principle, they would limit what an attacker holding a host-memory read primitive could recover from protected co-tenants. That is an inference rather than a demonstrated result for this CVE. It also does not protect the host kernel itself or co-tenants running conventional VMs. Recent academic work also describes existing support for running AMD SEV confidential VMs under nested virtualization as limited, and proposes new designs to close that gap [11]. Workloads that need both nesting and confidential computing may therefore face trade-offs.
Recommendations
Immediate Actions
Operators of KVM hosts on AMD processors should first determine whether nested virtualization is active by reading /sys/module/kvm_amd/parameters/nested. A value of 1 or Y means the host permits nested SVM [3][4][15]. Guests can reach the vulnerable path when their virtual CPU model also passes the svm feature through, as host-passthrough (-cpu host) configurations or a CPU model with svm explicitly enabled do [15]. Operators should therefore check both the module parameter and the CPU models assigned to untrusted guests. Upstream kernels older than 7.3.5, 6.18.64, or 6.12.118 are affected. For distribution kernels, which carry backports under older version numbers, operators should determine status from the vendor’s advisory or package changelog (for example, a reference to commit c7c288d178cb or CVE-2026-99312), not from the version number.
Where nesting is enabled and the host kernel is unpatched, the priority should be installing a fixed vendor kernel and rebooting or live-patching. Where no fixed package exists yet, operators should disable nesting. Red Hat documents shutting down all guests, running modprobe -r kvm_amd followed by modprobe kvm_amd nested=0, and persisting the setting with options kvm_amd nested=0 in /etc/modprobe.d/ [4]. Operators should confirm afterward that the parameter reads 0. Where disabling nesting host-wide is not feasible, removing the SVM feature from the CPU definitions of untrusted guests is a narrower, per-VM way to deny them the nested path [15]. Because disabling nesting breaks any guest that runs its own hypervisor, affected customers should be notified in advance.
Cloud tenants should ask each infrastructure provider for a written statement covering three points: whether AMD hosts in their fleet exposed nested virtualization, whether CVE-2026-99312 fixes or live patches have been applied, and on what date. Tenants running high-sensitivity workloads on AMD instances where the provider was affected should consider rotating secrets that were resident in VM memory during the exposure window. That window runs, at most, from the 2022 introduction of the bug, or from the provider’s enablement of AMD nesting if later, until the provider’s confirmed patch date. Even without evidence of exploitation, rotation is prudent, because no method for detecting past attempts has been published [3].
Short-Term Mitigations
Over the next several weeks, organizations should treat nested virtualization as an opt-in capability, not a default. On private KVM, OpenStack, Proxmox, and similar platforms, nesting should be disabled fleet-wide and re-enabled only on dedicated host pools for tenants or workloads with a documented need. That limits the blast radius of the next bug in this code. Vulnerability management teams should verify that their scanners flag host kernels against this CVE and record the kvm_amd nested state as a configuration attribute. A host can be functionally safe on an unpatched kernel when nesting is disabled, or exposed on a patched-looking kernel lineage that lacks the backport. Teams that initially triaged from early lower severity ratings should re-score against the current assessments.
Platform teams building AI agent sandboxes, code-execution environments, or CI runners on nested VMs inside cloud instances should check which hypervisor and CPU family sit beneath them. Where AMD nesting is in the path, they should consider moving untrusted workloads to bare-metal instances or to Intel-based capacity until the provider confirms remediation. Intel hosts are not affected by this CVE, but they share other nested-path code, as Januscape showed, so the move to Intel is a stopgap rather than a durable risk reduction [10].
Strategic Considerations
In the longer term, this incident supports several structural changes. Cloud procurement and third-party risk reviews should include specific questions about hypervisor patch latency, live-patching capability, and which virtualization features are exposed to tenants. Where providers publish STAR attestations or equivalent assurance artifacts, customers should check whether hypervisor vulnerability management is in scope. Highly sensitive workloads should be placed on dedicated hosts or bare-metal tenancy, where no co-tenant can exploit a hypervisor escape, or on confidential-computing instances that encrypt memory against the host. The choice should follow a documented threat model rather than cost alone.
Finally, Terra’s finding that about 3.2% of kernel CVEs were introduced by fixes for earlier CVEs, together with the history of this bug, suggests that security patches in complex subsystems deserve the same adversarial review as new features [1][2]. Organizations that maintain kernel forks or contribute to virtualization code should give regression analysis of security fixes explicit priority.
CSA Resource Alignment
The most directly relevant CSA work is the research note Januscape: 16-Year-Old KVM Flaw Enables VM Escape, published in July 2026 [10]. It analyzed CVE-2026-53359, a shadow-MMU use-after-free that also permitted KVM guest-to-host escape, and recommended disabling nested virtualization where it is not required, alongside careful verification of multi-commit fixes. CVE-2026-99312 reinforces that guidance. It is a second, independent memory-management flaw reachable through the nested path within five months. Organizations that acted on the Januscape recommendation to restrict nesting would have had their exposure to this new CVE reduced or eliminated.
CSA’s Best Practices for Mitigating Risks in Virtualized Environments [12] predates both disclosures, but it remains the foundational CSA treatment of hypervisor risk. It addresses VM isolation, hypervisor hardening, minimizing the hypervisor attack surface, and the risks of mixed-trust workloads sharing physical hosts. The practices it describes include disabling unneeded hypervisor features, segregating workloads by trust level, and keeping hypervisor patching disciplined. They map directly onto the immediate and short-term actions above, and CVE-2026-99312 is a concrete current example of why they matter.
The AI Controls Matrix (AICM) v1.1 [13] gives the control framework for putting these actions into operation. Its Threat and Vulnerability Management (TVM) domain covers timely remediation and vulnerability prioritization, including re-scoring as vendor assessments change. Its Infrastructure and Virtualization Security (IVS) domain addresses segmentation and isolation of virtualized and multi-tenant environments. Its Supply Chain Management, Transparency, and Accountability (STA) domain supports the provider transparency questions recommended here for cloud customers. For AI workloads specifically, AICM’s shared security responsibility model assigns hypervisor integrity to the provider, which customers must still verify.
References
[1] Healy, Tyler / DigitalOcean. “Virtualization, Responsible Disclosure, and CVE-2026-99312.” DigitalOcean Blog, November 19, 2026.
[2] Yomtov, Oren / Terra Security. “CVE-2026-99312: KVM Guest-to-Host Escape.” Terra Security Blog, November 18, 2026.
[3] Khandelwal, Swati. “Linux KVM Flaw CVE-2026-99312 Lets Guest VMs Access Host Memory on AMD Hosts.” The Hacker News, November 20, 2026.
[4] Red Hat Product Security. “CVE-2026-99312.” Red Hat Customer Portal, accessed November 28, 2026.
[5] Debian Security Team. “CVE-2026-99312.” Debian Security Bug Tracker, accessed November 28, 2026.
[6] Canonical. “CVE-2026-99312.” Ubuntu Security, last updated November 25, 2026.
[7] NIST. “CVE-2022-3344 Detail.” National Vulnerability Database, 2022.
[8] Amazon Web Services. “Amazon EC2 supports nested virtualization on virtual Amazon EC2 instances.” AWS What’s New, February 16, 2026.
[9] Google Cloud. “About nested virtualization.” Compute Engine Documentation, accessed November 28, 2026.
[10] Cloud Security Alliance. “Januscape: 16-Year-Old KVM Flaw Enables VM Escape.” CSA AI-assisted Rapid Research, July 8, 2026.
[11] Takiguchi, Kazuki and Kourai, Kenichi. “Nested SEV: Secure and Generic SEV Support for Nested Virtualization.” 20th USENIX Symposium on Operating Systems Design and Implementation (OSDI ’26), July 2026.
[12] Cloud Security Alliance. “Best Practices for Mitigating Risks in Virtualized Environments.” CSA, May 2015.
[13] Cloud Security Alliance. “AI Controls Matrix (AICM) v1.1.” CSA, June 2026.
[14] CVE Program. “CVE-2026-99312.” CVE.org, accessed November 28, 2026.
[15] The Linux Kernel Documentation. “Running nested guests with KVM.” kernel.org, accessed November 28, 2026.