CVE-2025-40300

x86/vmscape: Add conditional IBPB mitigation

No CVSS score yet EPSS 0.39%

Published 11 Sep 2025 Updated 10 Nov 2026 CNA: Linux

Check your servers for CVE-2025-40300

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-40300 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

x86/vmscape: Add conditional IBPB mitigation

VMSCAPE is a vulnerability that exploits insufficient branch predictor isolation between a guest and a userspace hypervisor (like QEMU). Existing mitigations already protect kernel/KVM from a malicious guest. Userspace can additionally be protected by flushing the branch predictors after a VMexit.

Since it is the userspace that consumes the poisoned branch predictors, conditionally issue an IBPB after a VMexit and before returning to userspace. Workloads that frequently switch between hypervisor and userspace will incur the most overhead from the new IBPB.

This new IBPB is not integrated with the existing IBPB sites. For instance, a task can use the existing speculation control prctl() to get an IBPB at context switch time. With this implementation, the IBPB is doubled up: one at context switch and another before running userspace.

The intent is to integrate and optimize these cases post-embargo.

[ dhansen: elaborate on suboptimal IBPB solution ]

Exploitation

EPSS 0.39%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 35.5% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Jun 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 15d45071523d89b3fb7372e2135fbd72f6af9506, before ac60717f9a8d21c58617d0b34274babf24135835
affected from 15d45071523d89b3fb7372e2135fbd72f6af9506, before c08192b5d6730a914dee6175bc71092ee6a65f14
affected from 15d45071523d89b3fb7372e2135fbd72f6af9506, before d5490dfa35427a2967e00a4c7a1b95fdbc8ede34
affected from 15d45071523d89b3fb7372e2135fbd72f6af9506, before 2f4f2f8f860cb4c3336a7435ebe8dcfded0c9c6e
affected from 15d45071523d89b3fb7372e2135fbd72f6af9506, before 15006289e5c38b2a830e1fba221977a27598176c
affected from 15d45071523d89b3fb7372e2135fbd72f6af9506, before 893387c18612bb452336a5881da0d015a7e8f4a2
affected from 15d45071523d89b3fb7372e2135fbd72f6af9506, before f866eef8d1c65504d30923c3f14082ad294d0e6d
affected from 15d45071523d89b3fb7372e2135fbd72f6af9506, before 34e5667041050711a947e260fc9ebebe08bddee5
affected from 15d45071523d89b3fb7372e2135fbd72f6af9506, before d7ddc93392e4a7ffcccc86edf6ef3e64c778db52
affected from 15d45071523d89b3fb7372e2135fbd72f6af9506, before 459274c77b37ac63b78c928b4b4e748d1f9d05c8
affected from 15d45071523d89b3fb7372e2135fbd72f6af9506, before 510603f504796c3535f67f55fb0b124a303b44c8
affected from 15d45071523d89b3fb7372e2135fbd72f6af9506, before 9c23a90648e831d611152ac08dbcd1283d405e7f
affected from 15d45071523d89b3fb7372e2135fbd72f6af9506, before 2f8f173413f1cbf52660d04df92d0069c4306d25
affected c51f1e5f57cca88d8d5894b6fad1638f643a99d0
affected 4b3870c343a82cd2df7192cc5149c87205dcc611
affected from 3.16.57, before 3.17
affected from 4.4.168, before 4.5
Other versions: unaffected
Linux
affected 4.16
unaffected before 4.16
unaffected from 5.10.244 up to and including 5.10.*
unaffected from 5.15.193 up to and including 5.15.*
unaffected from 6.1.152 up to and including 6.1.*
unaffected from 6.6.106 up to and including 6.6.*
unaffected from 6.12.47 up to and including 6.12.*
unaffected from 6.16.7 up to and including 6.16.*
unaffected 6.17 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-40300 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40300

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-40300
trivy image --scanners vuln IMAGE | grep CVE-2025-40300

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

11 more

Source: the record CVE-2025-40300 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.