{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139801","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.953Z","datePublished":"2026-11-30T13:38:07.487Z","dateUpdated":"2026-12-01T05:43:30.591Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:43:30.591Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM\n\nWhen doing RSM to L2, validate L1's state after copying it back into vmcb01\nfrom SMRAM, as SMRAM is carved out of guest memory, i.e. is writable by the\nguest.  Failure to validate L1's state is especially problematic for inputs\nto MMU context, as KVM can end up with impossible CR4 vs. EFER state.  E.g.\nwithout the recent hardening FNAME(walk_addr_generic), a guest can trigger:\n\n  ------------[ cut here ]------------\n  UBSAN: array-index-out-of-bounds in arch/x86/kvm/mmu/paging_tmpl.h:435:15\n  index 3 is out of range for type 'u32 [2]'\n  CPU: 3 UID: 0 PID: 92 Comm: CPU 1/KVM Not tainted 7.3.0-rc1 #2 PREEMPT(lazy)\n  Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.17.0-0-gb52ca86e094d-prebuilt.qemu.org 04/01/2014\n  Call Trace:\n   <TASK>\n   dump_stack_lvl+0x5f/0x90\n   dump_stack+0x10/0x18\n   ubsan_epilogue+0x9/0x39\n   __ubsan_handle_out_of_bounds.cold+0x50/0x55\n   paging32_walk_addr_generic+0x889/0x970\n   paging32_page_fault+0x79/0xa60\n   kvm_mmu_do_page_fault+0x125/0x270\n   kvm_mmu_page_fault+0x88/0x7b0\n   npf_interception+0xc8/0x220 [kvm_amd]\n   svm_invoke_exit_handler+0x16d/0x1d0 [kvm_amd]\n   svm_handle_exit+0xb7/0x160 [kvm_amd]\n   vcpu_enter_guest+0x428/0x16a0\n   kvm_arch_vcpu_ioctl_run+0x479/0x920\n   kvm_vcpu_ioctl+0x316/0xb00\n   __x64_sys_ioctl+0xa3/0x100\n   x64_sys_call+0x281/0x23d0\n   do_syscall_64+0xba/0x550\n   entry_SYSCALL_64_after_hwframe+0x76/0x7e\n  RIP: 0033:0x79bb30deb04b\n   </TASK>\n  ---[ end trace ]---"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H","baseScore":7.3,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"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.\nAC: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.\nPR: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.\nUI: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).\nS: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.\nC: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.\nI: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.\nA: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."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/x86/kvm/svm/nested.c","arch/x86/kvm/svm/svm.c","arch/x86/kvm/svm/svm.h"],"versions":[{"version":"37be407b2ce807179108eeac788805848fe048f1","lessThan":"2809b85d6e3c719c1328c4d8c9687bcbdb66ae81","status":"affected","versionType":"git"},{"version":"37be407b2ce807179108eeac788805848fe048f1","lessThan":"21f51c4589e248a59401e1718bebfd5dd1451538","status":"affected","versionType":"git"},{"version":"37be407b2ce807179108eeac788805848fe048f1","lessThan":"0e46b23d4258cfef79af4876622b2928e5ad0e12","status":"affected","versionType":"git"},{"version":"37be407b2ce807179108eeac788805848fe048f1","lessThan":"96f53e92062f43e451cd2a2f30979f2ec78728bf","status":"affected","versionType":"git"},{"version":"37be407b2ce807179108eeac788805848fe048f1","lessThan":"61ac218e9f816f82e46f7bee671557b52de21efd","status":"affected","versionType":"git"},{"version":"37be407b2ce807179108eeac788805848fe048f1","lessThan":"98c9b4348b33c7e575dff7d4dbac6df8e2f638e8","status":"affected","versionType":"git"},{"version":"37be407b2ce807179108eeac788805848fe048f1","lessThan":"053621535f014085c935879582dd3b65964a0dce","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/x86/kvm/svm/nested.c","arch/x86/kvm/svm/svm.c","arch/x86/kvm/svm/svm.h"],"versions":[{"version":"5.14","status":"affected"},{"version":"0","lessThan":"5.14","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.4-rc2"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/2809b85d6e3c719c1328c4d8c9687bcbdb66ae81"},{"url":"https://git.kernel.org/stable/c/21f51c4589e248a59401e1718bebfd5dd1451538"},{"url":"https://git.kernel.org/stable/c/0e46b23d4258cfef79af4876622b2928e5ad0e12"},{"url":"https://git.kernel.org/stable/c/96f53e92062f43e451cd2a2f30979f2ec78728bf"},{"url":"https://git.kernel.org/stable/c/61ac218e9f816f82e46f7bee671557b52de21efd"},{"url":"https://git.kernel.org/stable/c/98c9b4348b33c7e575dff7d4dbac6df8e2f638e8"},{"url":"https://git.kernel.org/stable/c/053621535f014085c935879582dd3b65964a0dce"}],"title":"KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM","x_generator":{"engine":"bippy-1.2.0"}}}}