KVM: VMX: Do _all_ initialization before exposing /dev/kvm to userspace
CVE-2022-49932 is fixed in 20 products on 1 platform, first by ALAS2023-2023-148, released March 30, 2023. It is not reported as exploited. Patch Radar priority: Routine.
In the Linux kernel, the following vulnerability has been resolved: KVM: VMX: Do _all_ initialization before exposing /dev/kvm to userspace Call kvm_init() only after _all_ setup is complete, as kvm_init() exposes /dev/kvm to userspace and thus allows userspace to create VMs (and call other ioctls). E.g. KVM will encounter a NULL pointer when attempting to add a vCPU to the per-CPU loaded_vmcss_on_cpu list if userspace is able to create a VM before vmx_init() configures said list. BUG: kernel NULL pointer dereference, address: 0000000000000008 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 0 P4D 0 Oops: 0002 [#1] SMP CPU: 6 PID: 1143 Comm: stable Not tainted 6.0.0-rc7+ #988 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015 RIP: 0010:vmx_vcpu_load_vmcs+0x68/0x230 [kvm_intel] <TASK> vmx_vcpu_load+0x16/0x60 [kvm_intel] kvm_arch_vcpu_load+0x32/0x1f0 [kvm] vcpu_load+0x2f/0x40 [kvm] kvm_arch_vcpu_create+0x231/0x310 [kvm] kvm_vm_ioctl+0x79f/0xe10 [kvm] ? handle_mm_fault+0xb1/0x220 __x64_sys_ioctl+0x80/0xb0 do_syscall_64+0x2b/0x50 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7f5a6b05743b </TASK> Modules linked in: vhost_net vhost vhost_iotlb tap kvm_intel(+) kvm irqbypass
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| bpftool · amzn 2023 | 6.1.21-1.45.amzn2023 | ALAS2023-2023-148 | Mar 30, 2023 |
| bpftool-debuginfo · amzn 2023 | 6.1.21-1.45.amzn2023 | ALAS2023-2023-148 | Mar 30, 2023 |
| kernel · amzn 2023 | 6.1.21-1.45.amzn2023 | ALAS2023-2023-148 | Mar 30, 2023 |
| kernel-debuginfo · amzn 2023 | 6.1.21-1.45.amzn2023 | ALAS2023-2023-148 | Mar 30, 2023 |
| kernel-debuginfo-common-aarch64 · amzn 2023 | 6.1.21-1.45.amzn2023 | ALAS2023-2023-148 | Mar 30, 2023 |
| kernel-debuginfo-common-x86_64 · amzn 2023 | 6.1.21-1.45.amzn2023 | ALAS2023-2023-148 | Mar 30, 2023 |
| kernel-devel · amzn 2023 | 6.1.21-1.45.amzn2023 | ALAS2023-2023-148 | Mar 30, 2023 |
| kernel-headers · amzn 2023 | 6.1.21-1.45.amzn2023 | ALAS2023-2023-148 | Mar 30, 2023 |
| kernel-libbpf · amzn 2023 | 6.1.21-1.45.amzn2023 | ALAS2023-2023-148 | Mar 30, 2023 |
| kernel-libbpf-devel · amzn 2023 | 6.1.21-1.45.amzn2023 | ALAS2023-2023-148 | Mar 30, 2023 |
| kernel-libbpf-static · amzn 2023 | 6.1.21-1.45.amzn2023 | ALAS2023-2023-148 | Mar 30, 2023 |
| kernel-livepatch-6.1.21-1.45 · amzn 2023 | 1.0-0.amzn2023 | ALAS2023-2023-148 | Mar 30, 2023 |
| kernel-tools · amzn 2023 | 6.1.21-1.45.amzn2023 | ALAS2023-2023-148 | Mar 30, 2023 |
| kernel-tools-debuginfo · amzn 2023 | 6.1.21-1.45.amzn2023 | ALAS2023-2023-148 | Mar 30, 2023 |
| kernel-tools-devel · amzn 2023 | 6.1.21-1.45.amzn2023 | ALAS2023-2023-148 | Mar 30, 2023 |
| linux · Debian 12.15 (bookworm) | 6.1.20-1 | DEBIAN-CVE-2022-49932 | May 2, 2025 |
| linux · Debian 13.5 (trixie) | 6.1.20-1 | DEBIAN-CVE-2022-49932 | May 2, 2025 |
| linux · Debian 14 | 6.1.20-1 | DEBIAN-CVE-2022-49932 | May 2, 2025 |
| perf · amzn 2023 | 6.1.21-1.45.amzn2023 | ALAS2023-2023-148 | Mar 30, 2023 |
| perf-debuginfo · amzn 2023 | 6.1.21-1.45.amzn2023 | ALAS2023-2023-148 | Mar 30, 2023 |
| python3-perf · amzn 2023 | 6.1.21-1.45.amzn2023 | ALAS2023-2023-148 | Mar 30, 2023 |
| python3-perf-debuginfo · amzn 2023 | 6.1.21-1.45.amzn2023 | ALAS2023-2023-148 | Mar 30, 2023 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.