{"id":"CVE-2025-40300","aliases":["CVE-2025-40300"],"related":[],"kind":"vulnerability","state":"published","title":"x86/vmscape: Add conditional IBPB mitigation","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/vmscape: Add conditional IBPB mitigation\n\nVMSCAPE is a vulnerability that exploits insufficient branch predictor\nisolation between a guest and a userspace hypervisor (like QEMU). Existing\nmitigations already protect kernel/KVM from a malicious guest. Userspace\ncan additionally be protected by flushing the branch predictors after a\nVMexit.\n\nSince it is the userspace that consumes the poisoned branch predictors,\nconditionally issue an IBPB after a VMexit and before returning to\nuserspace. Workloads that frequently switch between hypervisor and\nuserspace will incur the most overhead from the new IBPB.\n\nThis new IBPB is not integrated with the existing IBPB sites. For\ninstance, a task can use the existing speculation control prctl() to\nget an IBPB at context switch time. With this implementation, the\nIBPB is doubled up: one at context switch and another before running\nuserspace.\n\nThe intent is to integrate and optimize these cases post-embargo.\n\n[ dhansen: elaborate on suboptimal IBPB solution ]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/vmscape: Add conditional IBPB mitigation\n\nVMSCAPE is a vulnerability that exploits insufficient branch predictor\nisolation between a guest and a userspace hypervisor (like QEMU). Existing\nmitigations already protect kernel/KVM from a malicious guest. Userspace\ncan additionally be protected by flushing the branch predictors after a\nVMexit.\n\nSince it is the userspace that consumes the poisoned branch predictors,\nconditionally issue an IBPB after a VMexit and before returning to\nuserspace. Workloads that frequently switch between hypervisor and\nuserspace will incur the most overhead from the new IBPB.\n\nThis new IBPB is not integrated with the existing IBPB sites. For\ninstance, a task can use the existing speculation control prctl() to\nget an IBPB at context switch time. With this implementation, the\nIBPB is doubled up: one at context switch and another before running\nuserspace.\n\nThe intent is to integrate and optimize these cases post-embargo.\n\n[ dhansen: elaborate on suboptimal IBPB solution ]","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nx86/vmscape: Añadir mitigación condicional de IBPB\n\nVMSCAPE 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.\n\nDado 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.\n\nEste 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.\n\nLa intención es integrar y optimizar estos casos post-embargo.\n\n[ dhansen: elaborar sobre la solución IBPB subóptima ]","source":"nvd"}],"published":"2025-09-11T16:49:24.809Z","modified":"2026-11-10T13:17:55.933Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"15d45071523d89b3fb7372e2135fbd72f6af9506","fixed":"ac60717f9a8d21c58617d0b34274babf24135835","status":"affected"},{"type":"git","introduced":"15d45071523d89b3fb7372e2135fbd72f6af9506","fixed":"c08192b5d6730a914dee6175bc71092ee6a65f14","status":"affected"},{"type":"git","introduced":"15d45071523d89b3fb7372e2135fbd72f6af9506","fixed":"d5490dfa35427a2967e00a4c7a1b95fdbc8ede34","status":"affected"},{"type":"git","introduced":"15d45071523d89b3fb7372e2135fbd72f6af9506","fixed":"2f4f2f8f860cb4c3336a7435ebe8dcfded0c9c6e","status":"affected"},{"type":"git","introduced":"15d45071523d89b3fb7372e2135fbd72f6af9506","fixed":"15006289e5c38b2a830e1fba221977a27598176c","status":"affected"},{"type":"git","introduced":"15d45071523d89b3fb7372e2135fbd72f6af9506","fixed":"893387c18612bb452336a5881da0d015a7e8f4a2","status":"affected"},{"type":"git","introduced":"15d45071523d89b3fb7372e2135fbd72f6af9506","fixed":"f866eef8d1c65504d30923c3f14082ad294d0e6d","status":"affected"},{"type":"git","introduced":"15d45071523d89b3fb7372e2135fbd72f6af9506","fixed":"34e5667041050711a947e260fc9ebebe08bddee5","status":"affected"},{"type":"git","introduced":"15d45071523d89b3fb7372e2135fbd72f6af9506","fixed":"d7ddc93392e4a7ffcccc86edf6ef3e64c778db52","status":"affected"},{"type":"git","introduced":"15d45071523d89b3fb7372e2135fbd72f6af9506","fixed":"459274c77b37ac63b78c928b4b4e748d1f9d05c8","status":"affected"},{"type":"git","introduced":"15d45071523d89b3fb7372e2135fbd72f6af9506","fixed":"510603f504796c3535f67f55fb0b124a303b44c8","status":"affected"},{"type":"git","introduced":"15d45071523d89b3fb7372e2135fbd72f6af9506","fixed":"9c23a90648e831d611152ac08dbcd1283d405e7f","status":"affected"},{"type":"git","introduced":"15d45071523d89b3fb7372e2135fbd72f6af9506","fixed":"2f8f173413f1cbf52660d04df92d0069c4306d25","status":"affected"},{"type":"git","version":"c51f1e5f57cca88d8d5894b6fad1638f643a99d0","status":"affected"},{"type":"git","version":"4b3870c343a82cd2df7192cc5149c87205dcc611","status":"affected"},{"type":"semver","introduced":"3.16.57","fixed":"3.17","status":"affected"},{"type":"semver","introduced":"4.4.168","fixed":"4.5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.16","status":"unaffected"},{"type":"semver","introduced":"5.10.244","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.193","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.152","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.106","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.47","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.7","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.16.57","fixed":"3.17"},{"status":"affected","introduced":"4.4.168","fixed":"4.5"},{"status":"affected","introduced":"4.16","fixed":"5.10.244"},{"status":"affected","introduced":"5.11","fixed":"5.15.193"},{"status":"affected","introduced":"5.16","fixed":"6.1.152"},{"status":"affected","introduced":"6.2","fixed":"6.6.106"},{"status":"affected","introduced":"6.7","fixed":"6.12.47"},{"status":"affected","introduced":"6.13","fixed":"6.16.7"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/ac60717f9a8d21c58617d0b34274babf24135835","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c08192b5d6730a914dee6175bc71092ee6a65f14","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d5490dfa35427a2967e00a4c7a1b95fdbc8ede34","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2f4f2f8f860cb4c3336a7435ebe8dcfded0c9c6e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/15006289e5c38b2a830e1fba221977a27598176c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/893387c18612bb452336a5881da0d015a7e8f4a2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f866eef8d1c65504d30923c3f14082ad294d0e6d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/34e5667041050711a947e260fc9ebebe08bddee5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d7ddc93392e4a7ffcccc86edf6ef3e64c778db52","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/459274c77b37ac63b78c928b4b4e748d1f9d05c8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/510603f504796c3535f67f55fb0b124a303b44c8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9c23a90648e831d611152ac08dbcd1283d405e7f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2f8f173413f1cbf52660d04df92d0069c4306d25","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2025/11/14/3","tags":["mailing-list"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2025/11/14/4","tags":["mailing-list"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2025/11/14/6","tags":["mailing-list"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2025/11/17/2","tags":["mailing-list"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2025/11/17/3","tags":["mailing-list"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-10T20:41:37.391Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40300","url":"https://www.cve.org/CVERecord?id=CVE-2025-40300","licence":"CVE Terms of Use","modified":"2026-11-10T12:37:49.122Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40300","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40300","licence":"Public domain","modified":"2026-11-10T13:17:55.933Z"}],"updatedAt":"2026-11-25T22:59:04.570Z","epss":{"score":0.00392,"percentile":0.35503,"date":"2026-12-01T12:00:22.000Z"}}