Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139801

published high CVSS 3.1 · 7.3

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

Published
30 Nov 2026, 13:38:07 UTC
Updated
01 Dec 2026, 05:43:30 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux37be407b2ce807179108eeac788805848fe048f1 to < 2809b85d6e3c719c1328c4d8c9687bcbdb66ae81 · 37be407b2ce807179108eeac788805848fe048f1 to < 21f51c4589e248a59401e1718bebfd5dd1451538 · 37be407b2ce807179108eeac788805848fe048f1 to < 0e46b23d4258cfef79af4876622b2928e5ad0e12 · 37be407b2ce807179108eeac788805848fe048f1 to < 96f53e92062f43e451cd2a2f30979f2ec78728bf · 37be407b2ce807179108eeac788805848fe048f1 to < 61ac218e9f816f82e46f7bee671557b52de21efd · 37be407b2ce807179108eeac788805848fe048f1 to < 98c9b4348b33c7e575dff7d4dbac6df8e2f638e8 · 37be407b2ce807179108eeac788805848fe048f1 to < 053621535f014085c935879582dd3b65964a0dce · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.14 (affected) · 0 to < 5.14 (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc2 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Pending Fix; Not Affected Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Pending Fix Not stated Amazon Linux assessment

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 ]---

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.3 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H
Scenarios
en: AV:L - svm_leave_smm() copies L1's vmcb01 save area from the guest's own HSAVE page (hsave_msr+0x400) during RSM emulation, and nested_svm_init_mmu_context() passes its CR4/EFER to kvm_init_shadow_npt_mmu(). A tenant's guest kernel writes the forged bytes into guest RAM; no network protocol carries them. AC:L - The L1 kernel does every step: VMRUN an NPT L2, send an APIC_DM_SMI IPI (accepted by KVM's lapic) to that vCPU, overwrite HSAVE+0x400 from a sibling vCPU while the target is in SMM (attacker owns both sides of the window), then touch an unmapped L2 GPA. kvm_amd nested=1, QEMU smm=auto and SVM in the qemu64/host CPU models are all defaults. PR:L - Requires CPL0 inside an L1 guest to set EFER.SVME and VM_HSAVE_PA, execute VMRUN and write the APIC ICR. That is a tenant's own guest kernel, which holds no privilege on the host. UI:N - No host admin or other tenant action is involved. The attacker's own vCPUs drive the SMI, the RSM into L2 and the nested page fault that reaches paging32 FNAME(walk_addr_generic). S:C - The forged state comes from the guest, but the host's KVM MMU consumes it. The paging32 walker corrupts a guest_walker32 on the host kernel stack, and shadow-page allocation oopses under kvm->mmu_lock. The damage lands in the host kernel shared by other tenants, crossing the VM-to-host boundary. C:N - No read primitive was found. Aliased pte_gpa values only drive kvm_vcpu_read_guest_atomic(), which is bounded by the guest's memslots. Aliased ptep_user values are small host user VAs used for an A/D cmpxchg whose contents never return to the guest. I:L - With EFER.LMA=1/CR4.PAE=0 (plus forged LA57) the paging32 walker stores table_gfn/pte_gpa/ptep_user/pt_access[2..4] past guest_walker32's 2-entry arrays (UBSAN-confirmed), overwriting live fields with guest-PTE-derived values. Every index <=4 stays inside the 168-byte struct and no write outside the guest's own memory was found, so the effect is limited. A:H - On kernels without the 7.4 hardening (5.14-7.3), FNAME(fetch) uses table_gfn[2] as a shadow-page gfn; that slot aliases ptes[0..1], two guest PTEs, so the gfn has no memslot. account_shadowed()->update_gfn_write_track(NULL) then oopses with kvm->mmu_lock held, after a WARN in kvm_mmu_child_role. Hardened trees hit KVM_BUG_ON in kvm_calc_cpu_role, a host WARN.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 37be407b2ce807179108eeac788805848fe048f1 to < 2809b85d6e3c719c1328c4d8c9687bcbdb66ae81 (affected · git)37be407b2ce807179108eeac788805848fe048f1 to < 21f51c4589e248a59401e1718bebfd5dd1451538 (affected · git)37be407b2ce807179108eeac788805848fe048f1 to < 0e46b23d4258cfef79af4876622b2928e5ad0e12 (affected · git)37be407b2ce807179108eeac788805848fe048f1 to < 96f53e92062f43e451cd2a2f30979f2ec78728bf (affected · git)37be407b2ce807179108eeac788805848fe048f1 to < 61ac218e9f816f82e46f7bee671557b52de21efd (affected · git)37be407b2ce807179108eeac788805848fe048f1 to < 98c9b4348b33c7e575dff7d4dbac6df8e2f638e8 (affected · git)37be407b2ce807179108eeac788805848fe048f1 to < 053621535f014085c935879582dd3b65964a0dce (affected · git)Default: unaffected Linux · cna
Linux Linux 5.14 (affected)0 to < 5.14 (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc2 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

7

Provider assertions

1

Linux · cna

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

Provenance

Schema
5.2
Searchable
yes
Content hash
1f0706fdd7e07c2f74194b1500c0e1811604ed1e29f5416fbdf4d5f4ddc324e8
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected