KVM: VMX: Grab vmcs12 on CR8 interception update iff vCPU is in guest mode
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ffaaff82336db84e9b58e7a3e81c2fd64e05ed7a, Kernel 258ec63c0f281bf7b50f9de67c8e93b5b7be5ed4, Kernel 3dcfb04dd43b16fa1240fc6487fff578ad57264c and 12 more.
In the Linux kernel, the following vulnerability has been resolved: KVM: VMX: Grab vmcs12 on CR8 interception update iff vCPU is in guest mode When updating CR8 intercepts, get vmcs12 if and only if the vCPU is in guest mode so that a future change can have update CR8 intercepts during vCPU creation, without running afoul of get_vmcs12()'s lockdep assertion. ------------[ cut here ]------------ debug_locks && !(lock_is_held(&(&vcpu->mutex)->dep_map) || !refcount_read(&vcpu->kvm->users_count)) WARNING: arch/x86/kvm/vmx/nested.h:61 at get_vmcs12 arch/x86/kvm/vmx/nested.h:60 [inline], CPU#0: syz.2.19/5879 WARNING: arch/x86/kvm/vmx/nested.h:61 at vmx_update_cr8_intercept+0x3de/0x4e0 arch/x86/kvm/vmx/vmx.c:6879, CPU#0: syz.2.19/5879 Modules linked in: CPU: 0 UID: 0 PID: 5879 Comm: syz.2.19 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:get_vmcs12 arch/x86/kvm/vmx/nested.h:60 [inline] RIP: 0010:vmx_update_cr8_intercept+0x3de/0x4e0 arch/x86/kvm/vmx/vmx.c:6879 Call Trace: <TASK> apic_update_ppr arch/x86/kvm/lapic.c:984 [inline] kvm_lapic_reset+0x1c24/0x2980 arch/x86/kvm/lapic.c:3023 kvm_vcpu_reset+0x44c/0x1bf0 arch/x86/kvm/x86.c:12986 kvm_arch_vcpu_create+0x746/0x8b0 arch/x86/kvm/x86.c:12847 kvm_vm_ioctl_create_vcpu+0x428/0x930 virt/kvm/kvm_main.c:4201 kvm_vm_ioctl+0x893/0xd50 virt/kvm/kvm_main.c:5159 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f </TASK> No functional change intended.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=a7c0b07d570848e50fce4d31ac01313484d6b844 <ffaaff82336db84e9b58e7a3e81c2fd64e05ed7a, >=a7c0b07d570848e50fce4d31ac01313484d6b844 <258ec63c0f281bf7b50f9de67c8e93b5b7be5ed4, >=a7c0b07d570848e50fce4d31ac01313484d6b844 <3dcfb04dd43b16fa1240fc6487fff578ad57264c, >=a7c0b07d570848e50fce4d31ac01313484d6b844 <570af5db081b87374594a00711ac5760d2ea6844, >=a7c0b07d570848e50fce4d31ac01313484d6b844 <7ef78d71ca713d8c00f7c34ddcf276c808143f77, >=a7c0b07d570848e50fce4d31ac01313484d6b844 <9a21f1defd96c6301c5fb462a78eb51b191bd2dd, >=a7c0b07d570848e50fce4d31ac01313484d6b844 <c7cd3605244c924249dea32632e1bc3e89bda543, >=a7c0b07d570848e50fce4d31ac01313484d6b844 <db8407b9fd06d857a4a5e8bcff1d086d13007711, =3.18 | ffaaff82336db84e9b58e7a3e81c2fd64e05ed7a, 258ec63c0f281bf7b50f9de67c8e93b5b7be5ed4, 3dcfb04dd43b16fa1240fc6487fff578ad57264c, 570af5db081b87374594a00711ac5760d2ea6844, 7ef78d71ca713d8c00f7c34ddcf276c808143f77, 9a21f1defd96c6301c5fb462a78eb51b191bd2dd, c7cd3605244c924249dea32632e1bc3e89bda543, db8407b9fd06d857a4a5e8bcff1d086d13007711 |
| linux-kernel: Kernel | >=5.11.0 <5.15.212, >=5.16.0 <6.1.178, >=6.13.0 <6.18.39, >=6.19.0 <7.1.4, >=6.2.0 <6.6.145, >=6.7.0 <6.12.96, >=3.18.0 <5.10.261 | 5.15.212, 6.1.178, 6.18.39, 7.1.4, 6.6.145, 6.12.96, 5.10.261 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket