Skip to content
Heist/ feed
Back to feed
UnratedFix available

x86/vmscape: Add conditional IBPB mitigation

Type: advisorySources: OSV

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 ]

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.244, 5.15.193, 6.1.152, 6.12.47, 6.16.7, 6.6.106
CVEs
CVE-2025-40300
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 00:07 UTC · Revision 1

Source evidence

x86/vmscape: Add conditional IBPB mitigation

core-osv · Original source

Published 11 Sept 2025, 16:49 UTC

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 ]

osv:CVE-2025-40300

Kernel

Fixed versions: 5.10.244, 5.15.193, 6.1.152, 6.6.106, 6.12.47, 6.16.7

Complete source record
{
  "id": "c222b19dc80011a04e0ffff1f3f1c3cf7b30ae663856c1a39931a2f0ffe82004",
  "url": "https://osv.dev/vulnerability/CVE-2025-40300",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "x86/vmscape: Add conditional IBPB mitigation",
    "summary": "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 ]",
    "evidence": "osv:CVE-2025-40300",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.244",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.193",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.152",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.106",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.47",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.16.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-40300",
      "aliases": [
        "CVE-2025-40300"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "15d45071523d89b3fb7372e2135fbd72f6af9506"
                },
                {
                  "fixed": "ac60717f9a8d21c58617d0b34274babf24135835"
                },
                {
                  "fixed": "c08192b5d6730a914dee6175bc71092ee6a65f14"
                },
                {
                  "fixed": "d5490dfa35427a2967e00a4c7a1b95fdbc8ede34"
                },
                {
                  "fixed": "2f4f2f8f860cb4c3336a7435ebe8dcfded0c9c6e"
                },
                {
                  "fixed": "15006289e5c38b2a830e1fba221977a27598176c"
                },
                {
                  "fixed": "893387c18612bb452336a5881da0d015a7e8f4a2"
                },
                {
                  "fixed": "f866eef8d1c65504d30923c3f14082ad294d0e6d"
                },
                {
                  "fixed": "34e5667041050711a947e260fc9ebebe08bddee5"
                },
                {
                  "fixed": "d7ddc93392e4a7ffcccc86edf6ef3e64c778db52"
                },
                {
                  "fixed": "459274c77b37ac63b78c928b4b4e748d1f9d05c8"
                },
                {
                  "fixed": "510603f504796c3535f67f55fb0b124a303b44c8"
                },
                {
                  "fixed": "9c23a90648e831d611152ac08dbcd1283d405e7f"
                },
                {
                  "fixed": "2f8f173413f1cbf52660d04df92d0069c4306d25"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3.16.57"
                },
                {
                  "fixed": "3.17"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4.4.168"
                },
                {
                  "fixed": "4.5"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c51f1e5f57cca88d8d5894b6fad1638f643a99d0"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4b3870c343a82cd2df7192cc5149c87205dcc611"
                }
              ]
            }
          ],
          "versions": [
            "v3.16.85",
            "v3.16.84",
            "v3.16.83",
            "v3.16.82",
            "v3.16.81",
            "v3.16.80",
            "v3.16.79",
            "v3.16.78",
            "v3.16.77",
            "v3.16.76",
            "v3.16.75",
            "v3.16.74",
            "v3.16.73",
            "v3.16.72",
            "v3.16.71",
            "v3.16.70",
            "v3.16.69",
            "v3.16.68",
            "v3.16.67",
            "v3.16.66",
            "v3.16.65",
            "v3.16.64",
            "v3.16.63",
            "v3.16.62",
            "v3.16.61",
            "v3.16.60",
            "v3.16.59",
            "v3.16.58",
            "v3.16.57",
            "v4.4.302",
            "v4.4.301",
            "v4.4.300",
            "v4.4.299",
            "v4.4.298",
            "v4.4.297",
            "v4.4.296",
            "v4.4.295",
            "v4.4.294",
            "v4.4.293",
            "v4.4.292",
            "v4.4.291",
            "v4.4.290",
            "v4.4.289",
            "v4.4.288",
            "v4.4.287",
            "v4.4.286",
            "v4.4.285",
            "v4.4.284",
            "v4.4.283",
            "v4.4.282",
            "v4.4.281",
            "v4.4.280",
            "v4.4.279",
            "v4.4.278",
            "v4.4.277",
            "v4.4.276",
            "v4.4.275",
            "v4.4.274",
            "v4.4.273",
            "v4.4.272",
            "v4.4.271",
            "v4.4.270",
            "v4.4.269",
            "v4.4.268",
            "v4.4.267",
            "v4.4.266",
            "v4.4.265",
            "v4.4.264",
            "v4.4.263",
            "v4.4.262",
            "v4.4.261",
            "v4.4.260",
            "v4.4.259",
            "v4.4.258",
            "v4.4.257",
            "v4.4.256",
            "v4.4.255",
            "v4.4.254",
            "v4.4.253",
            "v4.4.252",
            "v4.4.251",
            "v4.4.250",
            "v4.4.249",
            "v4.4.248",
            "v4.4.247",
            "v4.4.246",
            "v4.4.245",
            "v4.4.244",
            "v4.4.243",
            "v4.4.242",
            "v4.4.241",
            "v4.4.240",
            "v4.4.239",
            "v4.4.238",
            "v4.4.237",
            "v4.4.236",
            "v4.4.235",
            "v4.4.234",
            "v4.4.233",
            "v4.4.232",
            "v4.4.231",
            "v4.4.230",
            "v4.4.229",
            "v4.4.228",
            "v4.4.227",
            "v4.4.226",
            "v4.4.225",
            "v4.4.224",
            "v4.4.223",
            "v4.4.222",
            "v4.4.221",
            "v4.4.220",
            "v4.4.219",
            "v4.4.218",
            "v4.4.217",
            "v4.4.216",
            "v4.4.215",
            "v4.4.214",
            "v4.4.213",
            "v4.4.212",
            "v4.4.211",
            "v4.4.210",
            "v4.4.209",
            "v4.4.208",
            "v4.4.207",
            "v4.4.206",
            "v4.4.205",
            "v4.4.204",
            "v4.4.203",
            "v4.4.202",
            "v4.4.201",
            "v4.4.200",
            "v4.4.199",
            "v4.4.198",
            "v4.4.197",
            "v4.4.196",
            "v4.4.195",
            "v4.4.194",
            "v4.4.193",
            "v4.4.192",
            "v4.4.191",
            "v4.4.190",
            "v4.4.189",
            "v4.4.188",
            "v4.4.187",
            "v4.4.186",
            "v4.4.185",
            "v4.4.184",
            "v4.4.183",
            "v4.4.182",
            "v4.4.181",
            "v4.4.180",
            "v4.4.179",
            "v4.4.178",
            "v4.4.177",
            "v4.4.176",
            "v4.4.175",
            "v4.4.174",
            "v4.4.173",
            "v4.4.172",
            "v4.4.171",
            "v4.4.170",
            "v4.4.169",
            "v4.4.168"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40300.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.16.0"
                },
                {
                  "fixed": "5.10.244"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.193"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.152"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.106"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.47"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.16.7"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40300.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:45.126467212Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-019113.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-032379.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-457936.html",
        "https://git.kernel.org/stable/c/15006289e5c38b2a830e1fba221977a27598176c",
        "https://git.kernel.org/stable/c/2f4f2f8f860cb4c3336a7435ebe8dcfded0c9c6e",
        "https://git.kernel.org/stable/c/2f8f173413f1cbf52660d04df92d0069c4306d25",
        "https://git.kernel.org/stable/c/34e5667041050711a947e260fc9ebebe08bddee5",
        "https://git.kernel.org/stable/c/459274c77b37ac63b78c928b4b4e748d1f9d05c8",
        "https://git.kernel.org/stable/c/510603f504796c3535f67f55fb0b124a303b44c8",
        "https://git.kernel.org/stable/c/893387c18612bb452336a5881da0d015a7e8f4a2",
        "https://git.kernel.org/stable/c/9c23a90648e831d611152ac08dbcd1283d405e7f",
        "https://git.kernel.org/stable/c/ac60717f9a8d21c58617d0b34274babf24135835",
        "https://git.kernel.org/stable/c/c08192b5d6730a914dee6175bc71092ee6a65f14",
        "https://git.kernel.org/stable/c/d5490dfa35427a2967e00a4c7a1b95fdbc8ede34",
        "https://git.kernel.org/stable/c/d7ddc93392e4a7ffcccc86edf6ef3e64c778db52",
        "https://git.kernel.org/stable/c/f866eef8d1c65504d30923c3f14082ad294d0e6d",
        "https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html",
        "https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40300.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-40300",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40300.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-40300",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 513342,
  "published_at": "2025-09-11T16:49:24.809+00:00"
}