CVE-2026-43315
KVM: nSVM: Remove a user-triggerable WARN on nested_svm_load_cr3() succeeding
Reported by linux · Published May 8, 2026
In the Linux kernel, the following vulnerability has been resolved: KVM: nSVM: Remove a user-triggerable WARN on nested_svm_load_cr3() succeeding Drop the WARN in svm_set_nested_state() on nested_svm_load_cr3() failing as it is trivially easy to trigger from userspace by modifying CPUID after loading CR3. E.g. modifying the state restoration selftest like so: --- tools/testing/selftests/kvm/x86/state_test.c +++ tools/testing/selftests/kvm/x86/state_test.c @@ -280,7 +280,16 @@ int main(int argc, char *argv[]) /* Restore state in a new VM. */ vcpu = vm_recreate_with_one_vcpu(vm); - vcpu_load_state(vcpu, state); + + if (stage == 4) { + state->sregs.cr3 = BIT(44); + vcpu_load_state(vcpu, state); + + vcpu_set_cpuid_property(vcpu, X86_PROPERTY_MAX_PHY_ADDR, 36); + __vcpu_nested_state_set(vcpu, &state->nested); + } else { + vcpu_load_state(vcpu, state); + } /* * Restore XSAVE state in a dummy vCPU, first without doing generates: WARNING: CPU: 30 PID: 938 at arch/x86/kvm/svm/nested.c:1877 svm_set_nested_state+0x34a/0x360 [kvm_amd] Modules linked in: kvm_amd kvm irqbypass [last unloaded: kvm] CPU: 30 UID: 1000 PID: 938 Comm: state_test Tainted: G W 6.18.0-rc7-58e10b63777d-next-vm Tainted: [W]=WARN Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015 RIP: 0010:svm_set_nested_state+0x34a/0x360 [kvm_amd] Call Trace: <TASK> kvm_arch_vcpu_ioctl+0xf33/0x1700 [kvm] kvm_vcpu_ioctl+0x4e6/0x8f0 [kvm] __x64_sys_ioctl+0x8f/0xd0 do_syscall_64+0x61/0xad0 entry_SYSCALL_64_after_hwframe+0x4b/0x53 Simply delete the WARN instead of trying to prevent userspace from shoving "illegal" state into CR3. For better or worse, KVM's ABI allows userspace to set CPUID after SREGS, and vice versa, and KVM is very permissive when it comes to guest CPUID. I.e. attempting to enforce the virtual CPU model when setting CPUID could break userspace. Given that the WARN doesn't provide any meaningful protection for KVM or benefit for userspace, simply drop it even though the odds of breaking userspace are minuscule. Opportunistically delete a spurious newline.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| perf6.18 | Amazon Linux | 1:6.18.16-18.222.amzn2023 |
| bpftool6.18 | Amazon Linux | 1:6.18.16-18.222.amzn2023 |
| kernel6.18-libbpf-devel | Amazon Linux | 1:6.18.16-18.222.amzn2023 |
| kernel6.18-tools-devel | Amazon Linux | 1:6.18.16-18.222.amzn2023 |
| kernel6.18-modules-extra-common | Amazon Linux | 1:6.18.16-18.222.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| kernel6.12-tools | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| bpftool6.12 | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| kernel6.18-libbpf-static | Amazon Linux | 1:6.18.16-18.222.amzn2023 |
| kernel-devel | Amazon Linux | 1:6.1.166-197.305.amzn2023 |
| kernel-headers | Amazon Linux | 1:6.1.166-197.305.amzn2023 |
| perf | Amazon Linux | 1:6.1.166-197.305.amzn2023 |
5 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | b222b0b88162bdef4eceb12a79d5edbbdb23dbfd, b222b0b88162bdef4eceb12a79d5edbbdb23dbfd, b222b0b88162bdef4eceb12a79d5edbbdb23dbfd |
| Linux | Linux | 5.14, 0, 5.15.202 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel6.18-libbpf-devel | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.18-libbpf-static | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-livepatch-6.18.16-18.222 | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel6.12 | 0 |
| linux | linux_kernel | 5.14, 5.14, 5.14 |
| amazon:2023 | kernel6.18-libbpf | 0 |
…and 26 more
Timeline
- May 8, 2026 CVE Published
- May 8, 2026 Security Advisory (81 in total, the first dated here)
- May 15, 2026 CVE Updated
- May 18, 2026 EPSS Score (26 in total, the first dated here)
- Aug 8, 2026 Coalition ESS Score
- Aug 11, 2026 Distribution Patch (75 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-43315
vulnetix vdb fixes CVE-2026-43315
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-43315/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart