{"api_version":"1","generated_at":"2026-05-13T07:40:47+00:00","cve":"CVE-2025-40300","urls":{"html":"https://cve.report/CVE-2025-40300","api":"https://cve.report/api/cve/CVE-2025-40300.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-40300","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-40300"},"summary":{"title":"x86/vmscape: Add conditional IBPB mitigation","description":"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 ]","state":"PUBLISHED","assigner":"Linux","published_at":"2025-09-11 17:15:45","updated_at":"2026-05-12 13:17:18"},"problem_types":["NVD-CWE-noinfo"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"5.5","severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"}}],"references":[{"url":"https://git.kernel.org/stable/c/2f8f173413f1cbf52660d04df92d0069c4306d25","name":"https://git.kernel.org/stable/c/2f8f173413f1cbf52660d04df92d0069c4306d25","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","name":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"http://www.openwall.com/lists/oss-security/2025/11/14/4","name":"http://www.openwall.com/lists/oss-security/2025/11/14/4","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/459274c77b37ac63b78c928b4b4e748d1f9d05c8","name":"https://git.kernel.org/stable/c/459274c77b37ac63b78c928b4b4e748d1f9d05c8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9c23a90648e831d611152ac08dbcd1283d405e7f","name":"https://git.kernel.org/stable/c/9c23a90648e831d611152ac08dbcd1283d405e7f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f866eef8d1c65504d30923c3f14082ad294d0e6d","name":"https://git.kernel.org/stable/c/f866eef8d1c65504d30923c3f14082ad294d0e6d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"http://www.openwall.com/lists/oss-security/2025/11/14/6","name":"http://www.openwall.com/lists/oss-security/2025/11/14/6","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/510603f504796c3535f67f55fb0b124a303b44c8","name":"https://git.kernel.org/stable/c/510603f504796c3535f67f55fb0b124a303b44c8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ac60717f9a8d21c58617d0b34274babf24135835","name":"https://git.kernel.org/stable/c/ac60717f9a8d21c58617d0b34274babf24135835","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d5490dfa35427a2967e00a4c7a1b95fdbc8ede34","name":"https://git.kernel.org/stable/c/d5490dfa35427a2967e00a4c7a1b95fdbc8ede34","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/15006289e5c38b2a830e1fba221977a27598176c","name":"https://git.kernel.org/stable/c/15006289e5c38b2a830e1fba221977a27598176c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"http://www.openwall.com/lists/oss-security/2025/11/14/3","name":"http://www.openwall.com/lists/oss-security/2025/11/14/3","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2f4f2f8f860cb4c3336a7435ebe8dcfded0c9c6e","name":"https://git.kernel.org/stable/c/2f4f2f8f860cb4c3336a7435ebe8dcfded0c9c6e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","name":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","refsource":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/893387c18612bb452336a5881da0d015a7e8f4a2","name":"https://git.kernel.org/stable/c/893387c18612bb452336a5881da0d015a7e8f4a2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/34e5667041050711a947e260fc9ebebe08bddee5","name":"https://git.kernel.org/stable/c/34e5667041050711a947e260fc9ebebe08bddee5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"http://www.openwall.com/lists/oss-security/2025/11/17/2","name":"http://www.openwall.com/lists/oss-security/2025/11/17/2","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d7ddc93392e4a7ffcccc86edf6ef3e64c778db52","name":"https://git.kernel.org/stable/c/d7ddc93392e4a7ffcccc86edf6ef3e64c778db52","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c08192b5d6730a914dee6175bc71092ee6a65f14","name":"https://git.kernel.org/stable/c/c08192b5d6730a914dee6175bc71092ee6a65f14","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"http://www.openwall.com/lists/oss-security/2025/11/17/3","name":"http://www.openwall.com/lists/oss-security/2025/11/17/3","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","name":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-40300","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40300","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 15d45071523d89b3fb7372e2135fbd72f6af9506 ac60717f9a8d21c58617d0b34274babf24135835 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 15d45071523d89b3fb7372e2135fbd72f6af9506 c08192b5d6730a914dee6175bc71092ee6a65f14 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 15d45071523d89b3fb7372e2135fbd72f6af9506 d5490dfa35427a2967e00a4c7a1b95fdbc8ede34 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 15d45071523d89b3fb7372e2135fbd72f6af9506 2f4f2f8f860cb4c3336a7435ebe8dcfded0c9c6e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 15d45071523d89b3fb7372e2135fbd72f6af9506 15006289e5c38b2a830e1fba221977a27598176c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 15d45071523d89b3fb7372e2135fbd72f6af9506 893387c18612bb452336a5881da0d015a7e8f4a2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 15d45071523d89b3fb7372e2135fbd72f6af9506 f866eef8d1c65504d30923c3f14082ad294d0e6d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 15d45071523d89b3fb7372e2135fbd72f6af9506 34e5667041050711a947e260fc9ebebe08bddee5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 15d45071523d89b3fb7372e2135fbd72f6af9506 d7ddc93392e4a7ffcccc86edf6ef3e64c778db52 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 15d45071523d89b3fb7372e2135fbd72f6af9506 459274c77b37ac63b78c928b4b4e748d1f9d05c8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 15d45071523d89b3fb7372e2135fbd72f6af9506 510603f504796c3535f67f55fb0b124a303b44c8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 15d45071523d89b3fb7372e2135fbd72f6af9506 9c23a90648e831d611152ac08dbcd1283d405e7f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 15d45071523d89b3fb7372e2135fbd72f6af9506 2f8f173413f1cbf52660d04df92d0069c4306d25 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c51f1e5f57cca88d8d5894b6fad1638f643a99d0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4b3870c343a82cd2df7192cc5149c87205dcc611 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.16","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.244 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.193 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.152 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.106 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.47 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.16.7 6.16.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.17 * original_commit_for_fix","platforms":[]},{"source":"ADP","vendor":"Siemens","product":"SIMATIC CN 4100","version":"affected V5.0 custom","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2025","cve_id":"40300","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2025-11-17T16:05:33.433Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"},{"url":"http://www.openwall.com/lists/oss-security/2025/11/14/3"},{"url":"http://www.openwall.com/lists/oss-security/2025/11/14/4"},{"url":"http://www.openwall.com/lists/oss-security/2025/11/14/6"},{"url":"http://www.openwall.com/lists/oss-security/2025/11/17/2"},{"url":"http://www.openwall.com/lists/oss-security/2025/11/17/3"}],"title":"CVE Program Container"},{"affected":[{"defaultStatus":"unknown","product":"SIMATIC CN 4100","vendor":"Siemens","versions":[{"lessThan":"V5.0","status":"affected","version":"0","versionType":"custom"}]}],"providerMetadata":{"dateUpdated":"2026-05-12T12:08:01.156Z","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","shortName":"siemens-SADP"},"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html"}],"x_adpType":"supplier"}],"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["arch/x86/include/asm/cpufeatures.h","arch/x86/include/asm/entry-common.h","arch/x86/include/asm/nospec-branch.h","arch/x86/kernel/cpu/bugs.c","arch/x86/kvm/x86.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"ac60717f9a8d21c58617d0b34274babf24135835","status":"affected","version":"15d45071523d89b3fb7372e2135fbd72f6af9506","versionType":"git"},{"lessThan":"c08192b5d6730a914dee6175bc71092ee6a65f14","status":"affected","version":"15d45071523d89b3fb7372e2135fbd72f6af9506","versionType":"git"},{"lessThan":"d5490dfa35427a2967e00a4c7a1b95fdbc8ede34","status":"affected","version":"15d45071523d89b3fb7372e2135fbd72f6af9506","versionType":"git"},{"lessThan":"2f4f2f8f860cb4c3336a7435ebe8dcfded0c9c6e","status":"affected","version":"15d45071523d89b3fb7372e2135fbd72f6af9506","versionType":"git"},{"lessThan":"15006289e5c38b2a830e1fba221977a27598176c","status":"affected","version":"15d45071523d89b3fb7372e2135fbd72f6af9506","versionType":"git"},{"lessThan":"893387c18612bb452336a5881da0d015a7e8f4a2","status":"affected","version":"15d45071523d89b3fb7372e2135fbd72f6af9506","versionType":"git"},{"lessThan":"f866eef8d1c65504d30923c3f14082ad294d0e6d","status":"affected","version":"15d45071523d89b3fb7372e2135fbd72f6af9506","versionType":"git"},{"lessThan":"34e5667041050711a947e260fc9ebebe08bddee5","status":"affected","version":"15d45071523d89b3fb7372e2135fbd72f6af9506","versionType":"git"},{"lessThan":"d7ddc93392e4a7ffcccc86edf6ef3e64c778db52","status":"affected","version":"15d45071523d89b3fb7372e2135fbd72f6af9506","versionType":"git"},{"lessThan":"459274c77b37ac63b78c928b4b4e748d1f9d05c8","status":"affected","version":"15d45071523d89b3fb7372e2135fbd72f6af9506","versionType":"git"},{"lessThan":"510603f504796c3535f67f55fb0b124a303b44c8","status":"affected","version":"15d45071523d89b3fb7372e2135fbd72f6af9506","versionType":"git"},{"lessThan":"9c23a90648e831d611152ac08dbcd1283d405e7f","status":"affected","version":"15d45071523d89b3fb7372e2135fbd72f6af9506","versionType":"git"},{"lessThan":"2f8f173413f1cbf52660d04df92d0069c4306d25","status":"affected","version":"15d45071523d89b3fb7372e2135fbd72f6af9506","versionType":"git"},{"status":"affected","version":"c51f1e5f57cca88d8d5894b6fad1638f643a99d0","versionType":"git"},{"status":"affected","version":"4b3870c343a82cd2df7192cc5149c87205dcc611","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["arch/x86/include/asm/cpufeatures.h","arch/x86/include/asm/entry-common.h","arch/x86/include/asm/nospec-branch.h","arch/x86/kernel/cpu/bugs.c","arch/x86/kvm/x86.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.16"},{"lessThan":"4.16","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.244","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.193","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.152","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.106","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.47","versionType":"semver"},{"lessThanOrEqual":"6.16.*","status":"unaffected","version":"6.16.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"6.17","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.244","versionStartIncluding":"4.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.244","versionStartIncluding":"4.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.193","versionStartIncluding":"4.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.193","versionStartIncluding":"4.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.152","versionStartIncluding":"4.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.152","versionStartIncluding":"4.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.106","versionStartIncluding":"4.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.106","versionStartIncluding":"4.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.47","versionStartIncluding":"4.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.47","versionStartIncluding":"4.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.16.7","versionStartIncluding":"4.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.16.7","versionStartIncluding":"4.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.17","versionStartIncluding":"4.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16.57","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4.168","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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 ]"}],"providerMetadata":{"dateUpdated":"2026-05-11T21:46:41.118Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/ac60717f9a8d21c58617d0b34274babf24135835"},{"url":"https://git.kernel.org/stable/c/c08192b5d6730a914dee6175bc71092ee6a65f14"},{"url":"https://git.kernel.org/stable/c/d5490dfa35427a2967e00a4c7a1b95fdbc8ede34"},{"url":"https://git.kernel.org/stable/c/2f4f2f8f860cb4c3336a7435ebe8dcfded0c9c6e"},{"url":"https://git.kernel.org/stable/c/15006289e5c38b2a830e1fba221977a27598176c"},{"url":"https://git.kernel.org/stable/c/893387c18612bb452336a5881da0d015a7e8f4a2"},{"url":"https://git.kernel.org/stable/c/f866eef8d1c65504d30923c3f14082ad294d0e6d"},{"url":"https://git.kernel.org/stable/c/34e5667041050711a947e260fc9ebebe08bddee5"},{"url":"https://git.kernel.org/stable/c/d7ddc93392e4a7ffcccc86edf6ef3e64c778db52"},{"url":"https://git.kernel.org/stable/c/459274c77b37ac63b78c928b4b4e748d1f9d05c8"},{"url":"https://git.kernel.org/stable/c/510603f504796c3535f67f55fb0b124a303b44c8"},{"url":"https://git.kernel.org/stable/c/9c23a90648e831d611152ac08dbcd1283d405e7f"},{"url":"https://git.kernel.org/stable/c/2f8f173413f1cbf52660d04df92d0069c4306d25"}],"title":"x86/vmscape: Add conditional IBPB mitigation","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2025-40300","datePublished":"2025-09-11T16:49:24.809Z","dateReserved":"2025-04-16T07:20:57.185Z","dateUpdated":"2026-05-12T12:08:01.156Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2025-09-11 17:15:45","lastModifiedDate":"2026-05-12 13:17:18","problem_types":["NVD-CWE-noinfo"],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":3.6}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16.57","versionEndExcluding":"3.17","matchCriteriaId":"38BA6B6B-1C08-4FA2-9202-D6F0F7E2F21C"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4.168","versionEndExcluding":"4.5","matchCriteriaId":"68F4BCC8-70D1-46FF-A19E-D5A6FC362749"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.16","versionEndExcluding":"5.10.244","matchCriteriaId":"647FF2A6-2089-4797-A4F2-9E2BA4FBAB45"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.15.193","matchCriteriaId":"74E3763E-8BAB-42B3-985E-CCEA1FCE2FC7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.1.152","matchCriteriaId":"AF43F1FA-EFBE-454C-91F8-6C4C06377D7F"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.6.106","matchCriteriaId":"AA718064-3FF6-4B00-9036-2338A1A82649"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.12.47","matchCriteriaId":"AF8BEADD-66F7-4108-8645-6B88A955C102"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"6.16.7","matchCriteriaId":"6398BD1D-2C0D-42F5-AE12-015B8C529AD4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*","matchCriteriaId":"327D22EF-390B-454C-BD31-2ED23C998A1C"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:*","matchCriteriaId":"C730CD9A-D969-4A8E-9522-162AAF7C0EE9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:*","matchCriteriaId":"39982C4B-716E-4B2F-8196-FA301F47807D"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:*","matchCriteriaId":"340BEEA9-D70D-4290-B502-FBB1032353B1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.17:rc5:*:*:*:*:*:*","matchCriteriaId":"47E4C5C0-079F-4838-971B-8C503D48FCC2"}]}]},{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","matchCriteriaId":"FA6FEEC2-9F11-4643-8827-749718254FED"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2025","CveId":"40300","Ordinal":"1","Title":"x86/vmscape: Add conditional IBPB mitigation","CVE":"CVE-2025-40300","Year":"2025"},"notes":[{"CveYear":"2025","CveId":"40300","Ordinal":"1","NoteData":"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 ]","Type":"Description","Title":"x86/vmscape: Add conditional IBPB mitigation"}]}}}