CVE-2026-139801

KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM

Published Nov 30, 2026 CVSS 3.1 · 7.3 High EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM

When doing RSM to L2, validate L1's state after copying it back into vmcb01
from SMRAM, as SMRAM is carved out of guest memory, i.e. is writable by the
guest. Failure to validate L1's state is especially problematic for inputs
to MMU context, as KVM can end up with impossible CR4 vs. EFER state. E.g.
without the recent hardening FNAME(walk_addr_generic), a guest can trigger:

------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in arch/x86/kvm/mmu/paging_tmpl.h:435:15
index 3 is out of range for type 'u32 [2]'
CPU: 3 UID: 0 PID: 92 Comm: CPU 1/KVM Not tainted 7.3.0-rc1 #2 PREEMPT(lazy)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.17.0-0-gb52ca86e094d-prebuilt.qemu.org 04/01/2014
Call Trace:
<TASK>
dump_stack_lvl+0x5f/0x90
dump_stack+0x10/0x18
ubsan_epilogue+0x9/0x39
__ubsan_handle_out_of_bounds.cold+0x50/0x55
paging32_walk_addr_generic+0x889/0x970
paging32_page_fault+0x79/0xa60
kvm_mmu_do_page_fault+0x125/0x270
kvm_mmu_page_fault+0x88/0x7b0
npf_interception+0xc8/0x220 [kvm_amd]
svm_invoke_exit_handler+0x16d/0x1d0 [kvm_amd]
svm_handle_exit+0xb7/0x160 [kvm_amd]
vcpu_enter_guest+0x428/0x16a0
kvm_arch_vcpu_ioctl_run+0x479/0x920
kvm_vcpu_ioctl+0x316/0xb00
__x64_sys_ioctl+0xa3/0x100
x64_sys_call+0x281/0x23d0
do_syscall_64+0xba/0x550
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x79bb30deb04b
</TASK>
---[ end trace ]---

Analysis

AI-generated

Technical impact

The Linux kernel’s KVM module contains a flaw in the handling of SVM resume (RSM) operations. The state snapshot stored in SMRAM is copied back into the vmcb01 save area without sufficient validation, allowing an attacker to craft a malformed state. This can produce impossible CR4/EFER combinations that trigger an out‑of‑bounds array index in the paging logic, resulting in a kernel panic that crashes the hypervisor. The crash isolates the affected virtual machine and, because the fault occurs in the hypervisor, the vulnerability could also facilitate privilege escalation to the host if memory corruption is leveraged; this is only inferred from the nature of the fault, not directly stated. Based on the description, the likely attack vector involves a privileged guest VM executing a Return‑to‑SMM (RSM) instruction to trigger the flaw. The vulnerability is only exploitable from a privileged guest that controls the contents of SMRAM.

Affected Systems

Linux kernel’s KVM component, present in all Linux distributions that ship the standard kernel, is affected. The flaw can impact any virtual machine running on a host kernel that supports Intel SVM mode.

Risk and Exploitability

No EPSS score is available and the vulnerability is not listed in CISA’s KEV catalog, indicating limited known exploitation. The CVSS score is not provided in the disclosed data, but the failure to validate critical hypervisor state strongly indicates a high severity risk. An attacker would need to run inside a virtual machine that enables SVM and execute RSM to trigger the flaw, which is feasible in typical virtualization setups. If exploited, the immediate effect is a hypervisor crash, potentially causing denial of service to the VM. The possibility of memory corruption that could lead to privilege escalation on the host is not confirmed in the available data; any escalation potential is only inferred from the nature of the fault and has not been demonstrated.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the patch referenced in commits 053621535f014085c935879582dd3b65964a0dce and 0e46b23d4258cfef79af4876622b2928e5ad0e12.
  • If a kernel update cannot be applied immediately, disable SVM support for the affected virtual machines or run the guest without SVM extensions to prevent RSM‑based state copying.
  • Ensure the QEMU hypervisor is also updated to its latest stable release, as earlier QEMU versions may expose the same vulnerability in the emulation layer.

Generated by OpenCVE AI on December 1, 2026 at 03:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H'}

Type Values Removed Values Added
Weaknesses CWE-188
CWE-20
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM When doing RSM to L2, validate L1's state after copying it back into vmcb01 from SMRAM, as SMRAM is carved out of guest memory, i.e. is writable by the guest. Failure to validate L1's state is especially problematic for inputs to MMU context, as KVM can end up with impossible CR4 vs. EFER state. E.g. without the recent hardening FNAME(walk_addr_generic), a guest can trigger: ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in arch/x86/kvm/mmu/paging_tmpl.h:435:15 index 3 is out of range for type 'u32 [2]' CPU: 3 UID: 0 PID: 92 Comm: CPU 1/KVM Not tainted 7.3.0-rc1 #2 PREEMPT(lazy) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.17.0-0-gb52ca86e094d-prebuilt.qemu.org 04/01/2014 Call Trace: <TASK> dump_stack_lvl+0x5f/0x90 dump_stack+0x10/0x18 ubsan_epilogue+0x9/0x39 __ubsan_handle_out_of_bounds.cold+0x50/0x55 paging32_walk_addr_generic+0x889/0x970 paging32_page_fault+0x79/0xa60 kvm_mmu_do_page_fault+0x125/0x270 kvm_mmu_page_fault+0x88/0x7b0 npf_interception+0xc8/0x220 [kvm_amd] svm_invoke_exit_handler+0x16d/0x1d0 [kvm_amd] svm_handle_exit+0xb7/0x160 [kvm_amd] vcpu_enter_guest+0x428/0x16a0 kvm_arch_vcpu_ioctl_run+0x479/0x920 kvm_vcpu_ioctl+0x316/0xb00 __x64_sys_ioctl+0xa3/0x100 x64_sys_call+0x281/0x23d0 do_syscall_64+0xba/0x550 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x79bb30deb04b </TASK> ---[ end trace ]---
Title KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-125

    Out-of-bounds Read

  • CWE-188

    Reliance on Data/Memory Layout

  • CWE-20

    Improper Input Validation

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Dec 1, 2026, 5:43 AM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:20 PM
Modified
Dec 1, 2026, 6:17 AM
Severity
Important
Public date
Nov 30, 2026, 1:38 PM