CVE-2025-40038

KVM: SVM: Skip fastpath emulation on VM-Exit if next RIP isn't valid

CVE-2025-40038 is fixed in 59 products on 1 platform, first by DEBIAN-CVE-2025-40038, released October 28, 2025. It is not reported as exploited. Patch Radar priority: High.

High
CVSS
7.1
Moderate
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0018
7th percentile

In the Linux kernel, the following vulnerability has been resolved: KVM: SVM: Skip fastpath emulation on VM-Exit if next RIP isn't valid Skip the WRMSR and HLT fastpaths in SVM's VM-Exit handler if the next RIP isn't valid, e.g. because KVM is running with nrips=false. SVM must decode and emulate to skip the instruction if the CPU doesn't provide the next RIP, and getting the instruction bytes to decode requires reading guest memory. Reading guest memory through the emulator can fault, i.e. can sleep, which is disallowed since the fastpath handlers run with IRQs disabled. BUG: sleeping function called from invalid context at ./include/linux/uaccess.h:106 in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 32611, name: qemu preempt_count: 1, expected: 0 INFO: lockdep is turned off. irq event stamp: 30580 hardirqs last enabled at (30579): [<ffffffffc08b2527>] vcpu_run+0x1787/0x1db0 [kvm] hardirqs last disabled at (30580): [<ffffffffb4f62e32>] __schedule+0x1e2/0xed0 softirqs last enabled at (30570): [<ffffffffb4247a64>] fpu_swap_kvm_fpstate+0x44/0x210 softirqs last disabled at (30568): [<ffffffffb4247a64>] fpu_swap_kvm_fpstate+0x44/0x210 CPU: 298 UID: 0 PID: 32611 Comm: qemu Tainted: G U 6.16.0-smp--e6c618b51cfe-sleep #782 NONE Tainted: [U]=USER Hardware name: Google Astoria-Turin/astoria, BIOS 0.20241223.2-0 01/17/2025 Call Trace: <TASK> dump_stack_lvl+0x7d/0xb0 __might_resched+0x271/0x290 __might_fault+0x28/0x80 kvm_vcpu_read_guest_page+0x8d/0xc0 [kvm] kvm_fetch_guest_virt+0x92/0xc0 [kvm] __do_insn_fetch_bytes+0xf3/0x1e0 [kvm] x86_decode_insn+0xd1/0x1010 [kvm] x86_emulate_instruction+0x105/0x810 [kvm] __svm_skip_emulated_instruction+0xc4/0x140 [kvm_amd] handle_fastpath_invd+0xc4/0x1a0 [kvm] vcpu_run+0x11a1/0x1db0 [kvm] kvm_arch_vcpu_ioctl_run+0x5cc/0x730 [kvm] kvm_vcpu_ioctl+0x578/0x6a0 [kvm] __se_sys_ioctl+0x6d/0xb0 do_syscall_64+0x8a/0x2c0 entry_SYSCALL_64_after_hwframe+0x4b/0x53 RIP: 0033:0x7f479d57a94b </TASK> Note, this is essentially a reapply of commit 5c30e8101e8d ("KVM: SVM: Skip WRMSR fastpath on VM-Exit if next RIP isn't valid"), but with different justification (KVM now grabs SRCU when skipping the instruction for other reasons).

Where it's fixed

ProductFixed inFixReleased
Linux
dtb-aarch64 · opensuse-leap 15.6 6.4.0-150600.23.81.1 SUSE-SU-2025:4422-1 Dec 17, 2025
dtb-aarch64 · opensuse-leap 16.0 6.12.0-160000.8.1 OPENSUSE-SU-2025:20172-1 Dec 19, 2025
kernel-64kb · opensuse-leap 15.6 6.4.0-150600.23.81.3 SUSE-SU-2025:4422-1 Dec 17, 2025
kernel-64kb · opensuse-leap 16.0 6.12.0-160000.8.1 OPENSUSE-SU-2025:20172-1 Dec 19, 2025
kernel-64kb · sles 15.6 6.4.0-150600.23.81.3 SUSE-SU-2025:4422-1 Dec 17, 2025
kernel-64kb · sles 15.7 6.4.0-150700.53.25.1 SUSE-SU-2025:4393-1 Dec 15, 2025
kernel-64kb · sles 16.0 6.12.0-160000.8.1 SUSE-SU-2026:20015-1 Dec 19, 2025
kernel-azure · opensuse-leap 15.6 6.4.0-150600.8.58.1 SUSE-SU-2025:4505-1 Dec 22, 2025
kernel-azure · sles 15.6 6.4.0-150600.8.58.1 SUSE-SU-2025:4505-1 Dec 22, 2025
kernel-azure · sles 15.7 6.4.0-150700.20.21.1 SUSE-SU-2025:4517-1 Dec 23, 2025
kernel-debug · opensuse-leap 15.6 6.4.0-150600.23.81.3 SUSE-SU-2025:4422-1 Dec 17, 2025
kernel-default · opensuse-leap 15.6 6.4.0-150600.23.81.3 SUSE-SU-2025:4422-1 Dec 17, 2025
kernel-default · opensuse-leap 16.0 6.12.0-160000.8.1 OPENSUSE-SU-2025:20172-1 Dec 19, 2025
kernel-default · sles 15.6 6.4.0-150600.23.81.3 SUSE-SU-2025:4422-1 Dec 17, 2025
kernel-default · sles 15.7 6.4.0-150700.53.25.1 SUSE-SU-2025:4393-1 Dec 15, 2025
kernel-default · sles 16.0 6.12.0-160000.8.1 SUSE-SU-2026:20015-1 Dec 19, 2025
kernel-default-base · opensuse-leap 15.6 6.4.0-150600.23.81.3.150600.12.36.3 SUSE-SU-2025:4422-1 Dec 17, 2025
kernel-default-base · opensuse-leap 16.0 6.12.0-160000.8.1.160000.2.5 OPENSUSE-SU-2025:20172-1 Dec 19, 2025
kernel-default-base · sles 15.6 6.4.0-150600.23.81.3.150600.12.36.3 SUSE-SU-2025:4422-1 Dec 17, 2025
kernel-default-base · sles 15.7 6.4.0-150700.53.25.1.150700.17.17.1 SUSE-SU-2025:4393-1 Dec 15, 2025
kernel-default-base · sles 16.0 6.12.0-160000.8.1.160000.2.5 SUSE-SU-2026:20015-1 Dec 19, 2025
kernel-docs · opensuse-leap 15.6 6.4.0-150600.23.81.1 SUSE-SU-2025:4422-1 Dec 17, 2025
kernel-docs · opensuse-leap 16.0 6.12.0-160000.8.1 OPENSUSE-SU-2025:20172-1 Dec 19, 2025
kernel-docs · sles 15.6 6.4.0-150600.23.81.1 SUSE-SU-2025:4422-1 Dec 17, 2025
kernel-docs · sles 15.7 6.4.0-150700.53.25.2 SUSE-SU-2025:4393-1 Dec 15, 2025
kernel-docs · sles 16.0 6.12.0-160000.8.1 SUSE-SU-2026:20015-1 Dec 19, 2025
kernel-kvmsmall · opensuse-leap 15.6 6.4.0-150600.23.81.3 SUSE-SU-2025:4422-1 Dec 17, 2025
kernel-kvmsmall · opensuse-leap 16.0 6.12.0-160000.8.1 OPENSUSE-SU-2025:20172-1 Dec 19, 2025
kernel-kvmsmall · sles 16.0 6.12.0-160000.8.1 SUSE-SU-2026:20015-1 Dec 19, 2025
kernel-livepatch-SLE15-SP6-RT_Update_18 · sles 15.6 1-150600.1.3.1 SUSE-SU-2025:4521-1 Dec 24, 2025
kernel-livepatch-SLE15-SP6_Update_18 · sles 15.6 1-150600.13.3.3 SUSE-SU-2025:4422-1 Dec 17, 2025
kernel-livepatch-SLE15-SP7-RT_Update_7 · sles 15.7 1-150700.1.3.1 SUSE-SU-2025:4516-1 Dec 23, 2025
kernel-livepatch-SLE15-SP7_Update_7 · sles 15.7 1-150700.15.3.1 SUSE-SU-2025:4393-1 Dec 15, 2025
kernel-obs-build · opensuse-leap 15.6 6.4.0-150600.23.81.3 SUSE-SU-2025:4422-1 Dec 17, 2025
kernel-obs-build · opensuse-leap 16.0 6.12.0-160000.8.1 OPENSUSE-SU-2025:20172-1 Dec 19, 2025
kernel-obs-build · sles 15.6 6.4.0-150600.23.81.3 SUSE-SU-2025:4422-1 Dec 17, 2025
kernel-obs-build · sles 15.7 6.4.0-150700.53.25.1 SUSE-SU-2025:4393-1 Dec 15, 2025
kernel-obs-qa · opensuse-leap 15.6 6.4.0-150600.23.81.1 SUSE-SU-2025:4422-1 Dec 17, 2025
kernel-obs-qa · opensuse-leap 16.0 6.12.0-160000.8.1 OPENSUSE-SU-2025:20172-1 Dec 19, 2025
kernel-obs-qa · sles 16.0 6.12.0-160000.8.1 SUSE-SU-2026:20015-1 Dec 19, 2025
kernel-rt · opensuse-leap 15.6 6.4.0-150600.10.61.1 SUSE-SU-2025:4521-1 Dec 24, 2025
kernel-rt · opensuse-leap 16.0 6.12.0-160000.8.1 OPENSUSE-SU-2025:20172-1 Dec 19, 2025
kernel-rt_debug · opensuse-leap 15.6 6.4.0-150600.10.61.1 SUSE-SU-2025:4521-1 Dec 24, 2025
kernel-source · opensuse-leap 15.6 6.4.0-150600.23.81.2 SUSE-SU-2025:4422-1 Dec 17, 2025
kernel-source · opensuse-leap 16.0 6.12.0-160000.8.1 OPENSUSE-SU-2025:20172-1 Dec 19, 2025
kernel-source · sles 15.6 6.4.0-150600.23.81.2 SUSE-SU-2025:4422-1 Dec 17, 2025
kernel-source · sles 15.7 6.4.0-150700.53.25.1 SUSE-SU-2025:4393-1 Dec 15, 2025
kernel-source · sles 16.0 6.12.0-160000.8.1 SUSE-SU-2026:20015-1 Dec 19, 2025
kernel-source-azure · opensuse-leap 15.6 6.4.0-150600.8.58.1 SUSE-SU-2025:4505-1 Dec 22, 2025
kernel-source-azure · sles 15.6 6.4.0-150600.8.58.1 SUSE-SU-2025:4505-1 Dec 22, 2025
kernel-source-azure · sles 15.7 6.4.0-150700.20.21.1 SUSE-SU-2025:4517-1 Dec 23, 2025
kernel-source-rt · opensuse-leap 15.6 6.4.0-150600.10.61.1 SUSE-SU-2025:4521-1 Dec 24, 2025
kernel-syms · opensuse-leap 15.6 6.4.0-150600.23.81.1 SUSE-SU-2025:4422-1 Dec 17, 2025
kernel-syms · opensuse-leap 16.0 6.12.0-160000.8.1 OPENSUSE-SU-2025:20172-1 Dec 19, 2025
kernel-syms · sles 15.6 6.4.0-150600.23.81.1 SUSE-SU-2025:4422-1 Dec 17, 2025
kernel-syms · sles 15.7 6.4.0-150700.53.25.1 SUSE-SU-2025:4393-1 Dec 15, 2025
kernel-syms · sles 16.0 6.12.0-160000.8.1 SUSE-SU-2026:20015-1 Dec 19, 2025
kernel-syms-azure · opensuse-leap 15.6 6.4.0-150600.8.58.1 SUSE-SU-2025:4505-1 Dec 22, 2025
kernel-syms-azure · sles 15.6 6.4.0-150600.8.58.1 SUSE-SU-2025:4505-1 Dec 22, 2025
kernel-syms-azure · sles 15.7 6.4.0-150700.20.21.1 SUSE-SU-2025:4517-1 Dec 23, 2025
kernel-syms-rt · opensuse-leap 15.6 6.4.0-150600.10.61.1 SUSE-SU-2025:4521-1 Dec 24, 2025
kernel-uek · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-core · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-core · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug-core · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug-core · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug-devel · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug-devel · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug-modules · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug-modules · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug-modules-core · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug-modules-core · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug-modules-deprecated · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug-modules-deprecated · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug-modules-desktop · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug-modules-desktop · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug-modules-extra · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug-modules-extra · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug-modules-extra-netfilter · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug-modules-extra-netfilter · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug-modules-usb · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug-modules-usb · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug-modules-wireless · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-debug-modules-wireless · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-devel · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-devel · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-doc · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-doc · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-modules · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-modules · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-modules-core · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-modules-core · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-modules-deprecated · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-modules-deprecated · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-modules-desktop · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-modules-desktop · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-modules-extra · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-modules-extra · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-modules-extra-netfilter · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-modules-extra-netfilter · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-modules-usb · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-modules-usb · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-modules-wireless · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-modules-wireless · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-tools · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek-tools · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k-core · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k-core · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k-devel · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k-devel · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k-modules · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k-modules · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k-modules-core · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k-modules-core · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k-modules-deprecated · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k-modules-deprecated · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k-modules-desktop · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k-modules-desktop · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k-modules-extra · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k-modules-extra · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k-modules-extra-netfilter · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k-modules-extra-netfilter · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k-modules-usb · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k-modules-usb · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k-modules-wireless · ol 10 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-uek64k-modules-wireless · ol 9 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040 Dec 10, 2025
kernel-zfcpdump · opensuse-leap 15.6 6.4.0-150600.23.81.3 SUSE-SU-2025:4422-1 Dec 17, 2025
kernel-zfcpdump · opensuse-leap 16.0 6.12.0-160000.8.1 OPENSUSE-SU-2025:20172-1 Dec 19, 2025
kernel-zfcpdump · sles 15.6 6.4.0-150600.23.81.3 SUSE-SU-2025:4422-1 Dec 17, 2025
kernel-zfcpdump · sles 15.7 6.4.0-150700.53.25.1 SUSE-SU-2025:4393-1 Dec 15, 2025
kernel-zfcpdump · sles 16.0 6.12.0-160000.8.1 SUSE-SU-2026:20015-1 Dec 19, 2025
linux · Debian 13.5 (trixie) 6.12.57-1 DEBIAN-CVE-2025-40038 Oct 28, 2025
linux · Debian 14 6.17.6-1 DEBIAN-CVE-2025-40038 Oct 28, 2025

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.