Skip to main content

Linux Kernel CVE-2025-40038

HIGH
2025-10-28 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.1
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain code execution in guest VM
  2. Delivery
    Guest triggers WRMSR/HLT/INVD VM-Exit
  3. Exploit
    SVM fastpath decodes instruction (nrips=false)
  4. Execution
    Guest-memory fetch sleeps with IRQs disabled
  5. Impact
    Sleep-in-atomic BUG crashes/hangs host

Vulnerability Assessment

Exploitation Conditions

Requires the host to be running KVM on an AMD processor with next-RIP save disabled (nrips=false) - either older/virtualized AMD CPUs lacking the feature or a host that explicitly disabled it; on default modern AMD hosts (nrips=true) the vulnerable emulate-to-skip path is never taken. Given that condition, an attacker only needs code execution inside a guest VM able to cause a WRMSR/HLT/INVD VM-Exit; no host authentication or user interaction is needed. Limiting factors: local vector only (must control a guest on the host), non-default nrips=false configuration, AMD-specific (SVM) code path, and availability-only impact (no data disclosure or code execution despite the misleading 'Information Disclosure' feed tag).

Impact

The supplied CVSS 3.1 vector (AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H, 7.1) reflects a local, scope-changed, availability-only impact - consistent with a guest crashing the host. However, real-world risk is materially lower than the base score suggests: EPSS is only 0.20% (10th percentile), there is no KEV listing and no known public exploit, and - most importantly - exploitation requires the host to be running KVM SVM with nrips=false, which is NOT the default on modern AMD hardware (next-RIP save is standard). The AC:L in the input arguably understates this: the non-default nrips=false precondition is closer to AC:H, since it is outside the guest attacker's control. The 'Information Disclosure' tag in the intelligence feed conflicts with the CVSS impact metrics (C:N/I:N/A:H) and the technical description, which describe a host DoS, not disclosure - this tag appears to be a mislabel and should not drive prioritization. Net: a genuine but conditional host-stability bug, low priority for hosts on modern AMD with nrips enabled, higher for older/emulated AMD or explicitly nrips-disabled setups.

Exploit ScenarioDerived

On an AMD KVM host configured (or forced by hardware) with nrips=false, a malicious or buggy guest issues an instruction that triggers a WRMSR, HLT, or INVD VM-Exit taking the fastpath; KVM then tries to fetch and decode guest memory to skip the instruction while IRQs are disabled, hits a sleeping fault, and the host logs a sleep-in-atomic BUG and can hang or crash. No public exploit is identified at time of analysis, and the local attack vector plus the non-default nrips=false requirement make opportunistic exploitation unlikely.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 30, 2026

Host denial-of-service in the Linux kernel's KVM AMD (SVM) subsystem allows a guest VM to crash or hang the hypervisor host when the CPU/host is running with next-RIP support disabled (nrips=false). In that mode the WRMSR, HLT and INVD VM-Exit fastpath handlers attempt to decode and emulate the guest instruction to advance RIP, which reads guest memory and can sleep - but these handlers run with IRQs disabled, triggering a 'sleeping function called from invalid context' BUG and destabilizing the host. There is no public exploit identified at time of analysis, and EPSS is low (0.20%, 10th percentile); despite the 7.1 CVSS the scope-changed availability impact is gated by a non-default configuration.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply the kernel update containing the fix that skips the WRMSR/HLT/INVD fastpaths when the next RIP isn't valid, from the stable commits (0910dd7c9ad4, cd3efb93677c, da2a3c231f7f, f994e9c790ce). Consume the fix via your distribution's patched kernel package once it incorporates these backports rather than hand-cherry-picking, then reboot to load the updated kvm_amd module. As a compensating control until patched, ensure AMD next-RIP save is enabled (the default) so the vulnerable emulation path is not taken - i.e. avoid loading kvm_amd with nrips disabled and do not run on hardware/config that lacks next-RIP save; the trade-off is that on CPUs genuinely without nrips support you cannot mitigate via configuration and must patch. Restricting the ability to launch untrusted guest VMs on affected hosts also limits exposure, at the cost of reduced multi-tenancy. Advisory references: the four git.kernel.org/stable commit URLs listed above.

Affected ProductsAI

The affected product is the Linux kernel's KVM AMD virtualization module (kvm_amd / SVM). The vulnerability manifests only on AMD hosts running with next-RIP support disabled (nrips=false), as reproduced on Linux 6.16.0 (commit e6c618b51cfe context). No explicit affected-version range, vendor CPE, or NVD CPE list was provided in the input, so precise start/end versions cannot be confirmed from available data. Remediation commits are published in the kernel stable tree: https://git.kernel.org/stable/c/0910dd7c9ad45a2605c45fd2bf3d1bcac087687c , https://git.kernel.org/stable/c/cd3efb93677c4b0cf76348882fb429165fee33fd , https://git.kernel.org/stable/c/da2a3c231f7f2a5ac146d972b8c1d7d84aff6d70 , and https://git.kernel.org/stable/c/f994e9c790ce97d3cf01af4d0a1b9add0c955aee .

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw lives in KVM's AMD SVM VM-Exit fastpath. On AMD, when the 'next RIP save' feature is available (nrips=true, the default on modern AMD CPUs), the CPU reports the address of the instruction following the one that caused the exit, so KVM can skip it cheaply. When nrips=false, KVM must instead decode and emulate the faulting instruction to advance RIP, and instruction fetch (kvm_fetch_guest_virt → kvm_vcpu_read_guest_page → __might_fault) can page-fault and sleep. The fastpath handlers (handle_fastpath_invd, plus the WRMSR and HLT fastpaths) execute in atomic context with hardware interrupts disabled, so any sleeping call violates atomicity - captured by lockdep/might_sleep as 'BUG: sleeping function called from invalid context'. The root cause class is invoking a blocking/sleeping operation from an atomic (IRQs-disabled) context, an improper synchronization / locking-context bug; NVD assigns no CWE, but this maps conceptually to CWE-667 (Improper Locking) / sleep-in-atomic. No affected-version CPE strings were supplied in the input; the reproduction was on kernel 6.16.0 on AMD (Google Astoria-Turin/astoria).

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.1 HIGH
AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H
vuln.today AI 5.6 MEDIUM

Local guest-to-host DoS: AC:H because it needs non-default nrips=false, PR:L because the attacker must control a guest, S:C for guest-to-host crossing, availability-only impact (A:H).

3.1 AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:H
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Red Hat 6.1 MEDIUM

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

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).

Executive ViewAI

Why It Matters

A denial-of-service vulnerability in the Linux kernel's KVM AMD virtualization subsystem (CVE-2025-40038) allows a guest virtual machine to hang or crash the physical hypervisor, potentially disrupting all workloads running on affected hardware. The vulnerability requires the hypervisor to be running with non-default KVM configuration (nrips=false), limiting current risk but requiring immediate configuration audit and remediation for affected environments.

Business Impact: High
Compensating Controls

Restore the nrips parameter to its default value (nrips=true) on affected hypervisors-this configuration change eliminates the vulnerability condition without waiting for a patch. Additionally, restrict guest VM access and provisioning to minimize attack surface, and implement hypervisor-level monitoring to detect exploitation attempts. No vendor-released patch identified at time of analysis; patch availability is pending upstream kernel development.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Ubiquitous
Linux kernel KVM is ubiquitous, though the AMD nrips=false trigger is a narrow subset
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/hpc/warewulf4-x86_64/sle-hpc-node:latest Image SLES15-SP6 Image SLES15-SP6-BYOS Image SLES15-SP6-BYOS-Azure Image SLES15-SP6-BYOS-EC2 Image SLES15-SP6-BYOS-GCE Image SLES15-SP6-CHOST-BYOS Image SLES15-SP6-CHOST-BYOS-Aliyun Image SLES15-SP6-CHOST-BYOS-Azure Image SLES15-SP6-CHOST-BYOS-EC2 Image SLES15-SP6-CHOST-BYOS-GCE Image SLES15-SP6-CHOST-BYOS-GDC Image SLES15-SP6-CHOST-BYOS-SAP-CCloud Image SLES15-SP6-EC2 Image SLES15-SP6-EC2-ECS-HVM Image SLES15-SP6-GCE Image SLES15-SP6-HPC-BYOS Image SLES15-SP6-HPC-BYOS-Azure Image SLES15-SP6-HPC-BYOS-EC2 Image SLES15-SP6-HPC-BYOS-GCE Image SLES15-SP6-HPC-EC2 Image SLES15-SP6-HPC-GCE Image SLES15-SP6-Hardened-BYOS Image SLES15-SP6-Hardened-BYOS-Azure Image SLES15-SP6-Hardened-BYOS-EC2 Image SLES15-SP6-Hardened-BYOS-GCE Image SLES15-SP6-SAP Image SLES15-SP6-SAP-Azure Image SLES15-SP6-SAP-EC2 Image SLES15-SP6-SAP-GCE Image SLES15-SP6-SAPCAL Image SLES15-SP6-SAPCAL-Azure Image SLES15-SP6-SAPCAL-EC2 Image SLES15-SP6-SAPCAL-GCE Affected
Container suse/sl-micro/6.0/baremetal-os-container:latest Container suse/sl-micro/6.1/baremetal-os-container:latest Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.95 Container suse/sl-micro/6.1/base-os-container:2.2.1-5.80 Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.114 Container suse/sl-micro/6.1/kvm-os-container:2.2.1-5.82 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.116 Container suse/sl-micro/6.1/rt-os-container:2.2.1-5.55 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy