CVE-2025-40300
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40300 is a speculative execution vulnerability in the Linux kernel known as VMSCAPE (VMexit Spectre Branch Target Injection), which exploits insufficient branch predictor isolation between a guest virtual machine and a userspace hypervisor such as QEMU. The flaw allows a malicious guest to poison branch predictors during VM exits, which are then consumed by the userspace hypervisor process, enabling potential information disclosure. It was publicly disclosed on September 11, 2025, and affects Linux kernel versions from 4.16 through multiple stable branches up to 6.16.x, as well as Microsoft Azure Linux and IBM Netezza Appliance systems. The vulnerability carries a CVSS v3.1 base score of 5.5 (Medium), reflecting a local attack vector with low privileges required (Red Hat CVE, Microsoft MSRC).

Technical details

VMSCAPE is classified under CWE-402 (Transmission of Private Resources into a New Sphere / Resource Leak) and is a Spectre Branch Target Injection (BTI) variant targeting the x86 virtualization boundary. When a guest VM triggers a VMexit, the CPU's branch predictor state is not adequately flushed before control returns to the userspace hypervisor (e.g., QEMU), allowing a malicious guest to have pre-poisoned the branch predictor with attacker-controlled targets. The fix introduces a conditional Indirect Branch Predictor Barrier (IBPB) issued after VMexit and before returning to userspace, preventing the poisoned predictor state from being exploited. Exploitation requires local access with low privileges — specifically the ability to run code inside a guest VM — and targets x86-based systems running userspace hypervisors. The ETH Zurich COMSEC group published a detailed research paper on the attack (COMSEC ETH Zurich).

Impact

Successful exploitation allows a malicious guest VM to read sensitive memory from the userspace hypervisor process (e.g., QEMU) through speculative execution side channels, potentially exposing cryptographic keys, credentials, or other sensitive data processed by the hypervisor. While existing kernel and KVM mitigations protect the kernel itself from guest-initiated attacks, the userspace hypervisor layer remains exposed without the new IBPB mitigation. In cloud environments where multiple tenants share physical hosts, this vulnerability poses a meaningful cross-tenant data leakage risk, as a guest could potentially infer hypervisor memory contents belonging to other VMs or the host operator (Red Hat CVE, COMSEC ETH Zurich).

Exploitability

No confirmed in-the-wild exploitation has been reported, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. A blog post describing the VMSCAPE Spectre BTI attack has been identified as a potential proof-of-concept reference (CyberBivash Blog), though no weaponized exploit code is publicly known. The EPSS score is approximately 0.032% (0.000320), indicating a low probability of exploitation in the near term. Exploitation requires the attacker to control code executing inside a guest VM on an affected host, limiting the attack surface to virtualized environments running userspace hypervisors on unpatched kernels (Red Hat CVE).

Exploitation steps

  1. Gain guest VM access: Obtain code execution inside a guest virtual machine running on a target host that uses a userspace hypervisor (e.g., QEMU/KVM) on an unpatched Linux kernel.
  2. Identify target hypervisor memory: Determine memory regions of interest in the QEMU process on the host (e.g., encryption keys, VM state, credentials) using timing side-channel reconnaissance techniques.
  3. Poison branch predictors: From within the guest, execute crafted code sequences that train the CPU's branch predictor with attacker-controlled branch targets, exploiting the lack of IBPB flush on VMexit.
  4. Trigger VMexit: Cause a VMexit event (e.g., via a hypercall, I/O operation, or interrupt) to transition execution from the guest to the host's userspace hypervisor.
  5. Exploit speculative execution: After VMexit, the hypervisor speculatively executes along attacker-controlled branch targets before the misprediction is resolved, transiently accessing hypervisor memory.
  6. Extract data via side channel: Use a cache-timing side channel (e.g., Flush+Reload or Prime+Probe) from within the guest to observe which cache lines were accessed during speculative execution, inferring hypervisor memory contents (COMSEC ETH Zurich, BleepingComputer).

Indicators of compromise

Due to the nature of this speculative execution side-channel attack, traditional IOCs are limited. No specific network, file system, or registry artifacts are associated with exploitation. Defenders should focus on behavioral and configuration-based detection:

  • Process Behavior: Unusual timing patterns or high-frequency VMexit events from guest VMs, which may indicate branch predictor poisoning attempts; anomalous CPU performance counter readings (e.g., elevated branch misprediction rates) on hypervisor hosts.
  • Logs: Kernel messages or hypervisor logs indicating unexpected VMexit storms or abnormal guest behavior; audit logs showing guest VMs performing excessive I/O or hypercall operations.
  • Configuration: Presence of unpatched kernel versions (pre-5.10.244, pre-5.15.193, pre-6.1.152, pre-6.6.106, pre-6.12.47, pre-6.16.7) on systems running QEMU or other userspace hypervisors, detectable via vulnerability scanners (Nessus plugin IDs: 264594, 264689, 264766; Qualys IDs: 163329, 163328).

Mitigation and workarounds

Apply updated Linux kernel packages containing the conditional IBPB mitigation for the x86/vmscape vulnerability. Fixed versions across stable branches include: 5.10.244, 5.15.193, 6.1.152, 6.6.106, 6.12.47, and 6.16.7. Vendor-specific patches are available from Red Hat (RHSA-2025:19930, RHSA-2025:19931, RHSA-2025:19932, and subsequent advisories), Ubuntu (USN-7850-1, USN-7853-2/3, USN-7854-1, USN-7861-x, USN-7863-1, USN-7864-1, USN-7865-1, USN-7874-x, USN-7875-1, USN-7910-x, USN-7933-1, USN-7934-1, USN-7937-1, USN-7938-1, USN-7939-x, USN-7940-x), Microsoft Azure Linux, Debian, AlmaLinux, Rocky Linux, Oracle Linux, and Slackware. As a workaround for systems that cannot be immediately patched, restrict guest VM creation and management to trusted users only, and consider disabling userspace hypervisors on sensitive hosts until patching is complete (Red Hat CVE, Microsoft MSRC, IBM Advisory).

Community reactions

The VMSCAPE vulnerability received significant media and research community attention upon disclosure on September 11, 2025. The ETH Zurich COMSEC group, credited with discovering the vulnerability, published a detailed research paper explaining the attack mechanics and its implications for cloud security (COMSEC ETH Zurich). Major security outlets including BleepingComputer, The Register, SecurityWeek, TechRadar, CSO Online, and The Hacker News covered the disclosure, with headlines emphasizing the threat to cloud isolation on AMD and Intel CPUs (BleepingComputer, SecurityWeek). Kaspersky published a blog post analyzing the attack, and the UK NCSC included it in their weekly security summary. Google Cloud also issued a security bulletin in response to the disclosure (Google Cloud). Community discussion on Mastodon and security forums noted the Spectre-like nature of the flaw and the performance overhead implications of the IBPB mitigation for workloads with frequent hypervisor/userspace context switches.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux: 6.1.153-1

Fixed

sid

linux: 6.16.7-1

Fixed

trixie

linux: 6.12.48-1

Fixed

Ubuntu

Fixed

bionic (esm-infra)

linux: 4.15.0-243.255

Fixed

bionic (fips-updates)

linux-fips: 4.15.0-1141.153

Fixed

bionic (fips)

linux-fips

Affected

devel

linux

Not Affected

focal (esm-infra)

linux: 5.4.0-223.243

Fixed

focal (fips-updates)

linux-fips: 5.4.0-1126.136

Fixed

focal (fips)

linux-fips

Affected

jammy

linux-azure-fde

Affected

RHEL / CentOS

Fixed

RHEL 8

:baseos:kernel-0:4.18.0-553.83.1.el8_10.src

Fixed

RHEL 9

:appstream:kernel-0:5.14.0-70.155.1.el9_0.src

Fixed

RHEL 10

kernel-0:6.12.0-55.52.1.el10_0.src

Fixed

SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-80904MEDIUM5.9
  • Linux Kernel logoLinux Kernel
  • linux-oracle-7.0
NoYesSep 04, 2026
CVE-2026-80905MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • linux-azure-6.8
NoYesSep 04, 2026
CVE-2026-80913MEDIUM4.4
  • Linux Kernel logoLinux Kernel
  • linux-intel-iotg
NoYesSep 04, 2026
CVE-2026-80912MEDIUM4.4
  • Linux Kernel logoLinux Kernel
  • linux-lowlatency-hwe-5.15
NoYesSep 04, 2026
CVE-2026-80906NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-4.15
NoYesSep 04, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management