5.5medium
x86/vmscape: Add conditional IBPB mitigation
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.39% (higher than 35% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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 ]
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 15d45071523d89b3fb7372e2135fbd72f6af9506 before ac60717f9a8d21c58617d0b34274babf24135835, from 15d45071523d89b3fb7372e2135fbd72f6af9506 before c08192b5d6730a914dee6175bc71092ee6a65f14, from 15d45071523d89b3fb7372e2135fbd72f6af9506 before d5490dfa35427a2967e00a4c7a1b95fdbc8ede34, from 15d45071523d89b3fb7372e2135fbd72f6af9506 before 2f4f2f8f860cb4c3336a7435ebe8dcfded0c9c6e, from 15d45071523d89b3fb7372e2135fbd72f6af9506 before 15006289e5c38b2a830e1fba221977a27598176c, from 15d45071523d89b3fb7372e2135fbd72f6af9506 before 893387c18612bb452336a5881da0d015a7e8f4a2, from 15d45071523d89b3fb7372e2135fbd72f6af9506 before f866eef8d1c65504d30923c3f14082ad294d0e6d, from 15d45071523d89b3fb7372e2135fbd72f6af9506 before 34e5667041050711a947e260fc9ebebe08bddee5 and 10 more Not affected: before 4.16, from 5.10.244 up to 5.10.*, from 5.15.193 up to 5.15.*, from 6.1.152 up to 6.1.*, from 6.6.106 up to 6.6.*, from 6.12.47 up to 6.12.* | CVE List |
| linux linux_kernel | from 3.16.57 before 3.17, from 4.4.168 before 4.5, from 4.16 before 5.10.244, from 5.11 before 5.15.193, from 5.16 before 6.1.152, from 6.2 before 6.6.106, from 6.7 before 6.12.47, from 6.13 before 6.16.7 and 1 more | NVD |
| debian debian_linux | 11.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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 ]
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: x86/vmscape: Añadir mitigación condicional de IBPB VMSCAPE es una vulnerabilidad que explota el aislamiento insuficiente del predictor de ramas entre un invitado y un hipervisor en espacio de usuario (como QEMU). Las mitigaciones existentes ya protegen al kernel/KVM de un invitado malicioso. El espacio de usuario puede protegerse adicionalmente vaciando los predictores de ramas después de un VMexit. Dado que es el espacio de usuario el que consume los predictores de ramas envenenados, se emite condicionalmente un IBPB después de un VMexit y antes de regresar al espacio de usuario. Las cargas de trabajo que con frecuencia cambian entre el hipervisor y el espacio de usuario incurrirán en la mayor sobrecarga del nuevo IBPB. Este nuevo IBPB no está integrado con los sitios IBPB existentes. Por ejemplo, una tarea puede usar el prctl() de control de especulación existente para obtener un IBPB en el momento del cambio de contexto. Con esta implementación, el IBPB se duplica: uno en el cambio de contexto y otro antes de ejecutar el espacio de usuario. La intención es integrar y optimizar estos casos post-embargo. [ dhansen: elaborar sobre la solución IBPB subóptima ]
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-40300 changed 2026-11-10 | CVE Terms of Use |
| NVD | CVE-2025-40300 changed 2026-11-10 | Public domain |