GHSA-VMH6-434H-9MPM
Vulnerability from github – Published: 2026-11-19 15:31 – Updated: 2026-11-22 12:31In the Linux kernel, the following vulnerability has been resolved:
KVM: SVM: Trigger new ASID allocation in both VMCBs on pCPU switch
When the pCPU where the VMCB was most recently used is switched, reset the ASID generation in both VMCBs, triggering new ASID allocation for the immediate VMRUN as well as the next VMRUN on the other VMCB.
The ASID is shared between vmcb01 and vmcb02, and gets flushed on every nested transition. However, since pCPU tracking is done per VMCB, it is possible for one VMCB to allocate a new ASID when migrated to a new pCPU, and then the other VMCB reuses that ASID on the old pCPU. This can result in the same ASID being used by multiple vCPUs on the old pCPU.
Example scenario: - vCPU runs on pCPU A, vmcb01 is active, asid=1. - vCPU migrates to pCPU B, vmcb01 pCPU changes, new asid=2. - Another vCPU runs on pCPU A and allocates asid=2 as well. - vCPU migrates back to pCPU A, and then switches to vmcb02 before it runs again with vmcb01. - No pCPU switch is detected for vmcb02, so VMRUN is done with asid=2. - Two vCPUs end up using asid=2 on the same pCPU.
Keep the VMCB dirtying to the active VMCB only. Clean bits are tracked by a pCPU for each VMCB, so do not unnecessarily dirty a VMCB if its pCPU does not change.
Additionally, initialize the tracked pCPU for vmcb02 to -1 on nested enablement as hardening, so that a new ASID allocation is always triggered when nested is disabled and re-enabled.
No performance regression was noticed when overcommitting L1 vCPUs in L0 (to force rescheduling), pinning L1 <-> L2 vCPUs, and running CPUID in a tight loop bouncing between 2 vCPUs in L2.
An alternative (and perhaps more proper) fix would be tracking the ASID per-VMCB instead (e.g. [1]). However, that's a more involved change, and it would result in having different ASIDs for L1 and L2 without actually properly maintaining them. It would probably work because all TLB flushes target the current VMCB, and the other VMCB is always flushed on nested transitions, but the code ends up in an arguably more fragile state. Punt a proper clean fix to an incoming (and overdue) overhaul of SVM's ASID usage [2].
[1] https://lore.kernel.org/lkml/20250205182402.2147495-2-yosry.ahmed@linux.dev [2] https://lore.kernel.org/kvm/20260728003557.1136583-1-yosry@kernel.org
{
"affected": [],
"aliases": [
"CVE-2026-99346"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-19T15:17:45Z",
"severity": "HIGH"
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: SVM: Trigger new ASID allocation in both VMCBs on pCPU switch\n\nWhen the pCPU where the VMCB was most recently used is switched, reset\nthe ASID generation in both VMCBs, triggering new ASID allocation for\nthe immediate VMRUN as well as the next VMRUN on the other VMCB.\n\nThe ASID is shared between vmcb01 and vmcb02, and gets flushed on every\nnested transition. However, since pCPU tracking is done per VMCB, it is\npossible for one VMCB to allocate a new ASID when migrated to a new\npCPU, and then the other VMCB reuses that ASID on the old pCPU. This can\nresult in the same ASID being used by multiple vCPUs on the old pCPU.\n\nExample scenario:\n- vCPU runs on pCPU A, vmcb01 is active, asid=1.\n- vCPU migrates to pCPU B, vmcb01 pCPU changes, new asid=2.\n- Another vCPU runs on pCPU A and allocates asid=2 as well.\n- vCPU migrates back to pCPU A, and then switches to vmcb02 before it\n runs again with vmcb01.\n- No pCPU switch is detected for vmcb02, so VMRUN is done with asid=2.\n- Two vCPUs end up using asid=2 on the same pCPU.\n\nKeep the VMCB dirtying to the active VMCB only. Clean bits are tracked\nby a pCPU for each VMCB, so do not unnecessarily dirty a VMCB if its\npCPU does not change.\n\nAdditionally, initialize the tracked pCPU for vmcb02 to -1 on nested\nenablement as hardening, so that a new ASID allocation is always\ntriggered when nested is disabled and re-enabled.\n\nNo performance regression was noticed when overcommitting L1 vCPUs in L0\n(to force rescheduling), pinning L1 \u003c-\u003e L2 vCPUs, and running CPUID in a\ntight loop bouncing between 2 vCPUs in L2.\n\nAn alternative (and perhaps more proper) fix would be tracking the ASID\nper-VMCB instead (e.g. [1]). However, that\u0027s a more involved change, and\nit would result in having different ASIDs for L1 and L2 without actually\nproperly maintaining them. It would probably work because all TLB\nflushes target the current VMCB, and the other VMCB is always flushed on\nnested transitions, but the code ends up in an arguably more fragile\nstate. Punt a proper clean fix to an incoming (and overdue) overhaul of\nSVM\u0027s ASID usage [2].\n\n[1] https://lore.kernel.org/lkml/20250205182402.2147495-2-yosry.ahmed@linux.dev\n[2] https://lore.kernel.org/kvm/20260728003557.1136583-1-yosry@kernel.org",
"id": "GHSA-vmh6-434h-9mpm",
"modified": "2026-11-22T12:31:13Z",
"published": "2026-11-19T15:31:21Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99346"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/058173bce103b6ac405b2bbf61e29a7f3767348f"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/5636d57b61068918085360aaad18ab57872e5800"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/7d787fb34e825218702496fb0d5892529bea9366"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/bf260dc9e7b8bfcd06c1a8e739797b1cf0917c72"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.