CVE-2026-46076: KVM: nSVM: Raise #UD if unhandled VMMCALL isn't intercepted by L1
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
KVM: nSVM: Raise #UD if unhandled VMMCALL isn't intercepted by L1
Explicitly synthesize a #UD for VMMCALL if L2 is active, L1 does NOT want to intercept VMMCALL, nested_svm_l2_tlb_flush_enabled() is true, and the hypercall is something other than one of the supported Hyper-V hypercalls. When all of the above conditions are met, KVM will intercept VMMCALL but never forward it to L1, i.e. will let L2 make hypercalls as if it were L1.
The TLFS says a whole lot of nothing about this scenario, so go with the architectural behavior, which says that VMMCALL #UDs if it's not intercepted.
Opportunistically do a 2-for-1 stub trade by stub-ifying the new API instead of the helpers it uses. The last remaining "single" stub will soon be dropped as well.
[sean: rewrite changelog and comment, tag for stable, remove defunct stubs]
The Linux kernel CVE team has assigned CVE-2026-46076 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.2 with commit 3f4a812edf5cb0a50e65fbdfafdb3e688da18f16 and fixed in 6.12.86 with commit 924d721fae95687acedbaf624a094ed0e8b67104 Issue introduced in 6.2 with commit 3f4a812edf5cb0a50e65fbdfafdb3e688da18f16 and fixed in 6.18.27 with commit 009c0f726abeaa67aad1d96b883bdce01d405ce2 Issue introduced in 6.2 with commit 3f4a812edf5cb0a50e65fbdfafdb3e688da18f16 and fixed in 7.0.4 with commit 5fb4a5f361565f5b629d8a8fe5288ce8463c5727 Issue introduced in 6.2 with commit 3f4a812edf5cb0a50e65fbdfafdb3e688da18f16 and fixed in 7.1-rc1 with commit c36991c6f8d2ab56ee67aff04e3c357f45cfc76c
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-46076
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
arch/x86/kvm/hyperv.h arch/x86/kvm/svm/hyperv.h arch/x86/kvm/svm/nested.c arch/x86/kvm/svm/svm.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/924d721fae95687acedbaf624a094ed0e8b67104 https://git.kernel.org/stable/c/009c0f726abeaa67aad1d96b883bdce01d405ce2 https://git.kernel.org/stable/c/5fb4a5f361565f5b629d8a8fe5288ce8463c5727 https://git.kernel.org/stable/c/c36991c6f8d2ab56ee67aff04e3c357f45cfc76c