{"id":"CVE-2026-68093","aliases":["CVE-2026-68093"],"related":[],"kind":"vulnerability","state":"published","title":"KVM: SVM: Bump asid_generation on CPU online to avoid ASID collision after hotplug","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: SVM: Bump asid_generation on CPU online to avoid ASID collision after hotplug\n\nIf a vCPU stays scheduled out (or blocked) while the last pCPU it ran\non goes through a hotplug cycle (online->offline->online), and the vCPU\nthen resumes execution on the same pCPU, then it is possible for it to\nrun with an ASID that has now been assigned to a different vCPU,\nresulting in stale TLB translations being used.\n\nsvm_enable_virtualization_cpu() resets asid_generation to 1 and sets\nnext_asid to max_asid + 1 on every CPU online event, including hotplug\ncycles.  Because next_asid starts beyond the pool boundary, the first\ncall to new_asid() after an online event always wraps the pool,\nincrementing asid_generation to 2 and assigning ASIDs starting from\nmin_asid.\n\nConsider two vCPUs from different VMs, vCPU-A pinned to CPU-X holding\nasid_generation=2 and ASID=N from before the hotplug event:\n\n  1. CPU-X goes offline and back online: asid_generation resets to 1,\n     next_asid = max_asid + 1.\n\n  2. One or more vCPUs migrate to CPU-X and call new_asid(), wrapping\n     the pool and consuming ASIDs starting from min_asid.  Eventually\n     vCPU-B from a different VM is assigned asid_generation=2, ASID=N\n     — the same ASID that vCPU-A held before the hotplug.\n\n  3. vCPU-A enters pre_svm_run() on CPU-X: current_vmcb->cpu is\n     unchanged so the migration branch is skipped.  Its saved\n     asid_generation=2 matches sd->asid_generation=2, so the generation\n     check silently passes and vCPU-A continues running with ASID=N —\n     the same ASID just freshly assigned to vCPU-B.\n\nBoth vCPUs from different VMs now run on CPU-X with the same ASID,\ncausing them to share NPT TLB entries and producing stale translations.\n\nThe collision manifests as a KVM internal error (Suberror: 1, emulation\nfailure).  The NPT page fault reports a faulting GPA far outside the\nVM's physical memory range — a sign of stale TLB translations being\nused.  KVM falls back to instruction emulation, which fails on\nFPU/XSave instructions (XRSTOR, STMXCSR) that the emulator does not\nimplement.\n\nFix this by incrementing asid_generation instead of resetting it to 1\nin svm_enable_virtualization_cpu().  On module load, asid_generation\nstarts at 0 (memset) and the increment produces 1, identical to the\nold behaviour.  On subsequent hotplug cycles the generation advances\nbeyond any value a vCPU previously observed on this CPU, so the\ngeneration check in pre_svm_run() reliably forces new_asid() on every\nvCPU after every hotplug cycle.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: SVM: Bump asid_generation on CPU online to avoid ASID collision after hotplug\n\nIf a vCPU stays scheduled out (or blocked) while the last pCPU it ran\non goes through a hotplug cycle (online->offline->online), and the vCPU\nthen resumes execution on the same pCPU, then it is possible for it to\nrun with an ASID that has now been assigned to a different vCPU,\nresulting in stale TLB translations being used.\n\nsvm_enable_virtualization_cpu() resets asid_generation to 1 and sets\nnext_asid to max_asid + 1 on every CPU online event, including hotplug\ncycles.  Because next_asid starts beyond the pool boundary, the first\ncall to new_asid() after an online event always wraps the pool,\nincrementing asid_generation to 2 and assigning ASIDs starting from\nmin_asid.\n\nConsider two vCPUs from different VMs, vCPU-A pinned to CPU-X holding\nasid_generation=2 and ASID=N from before the hotplug event:\n\n  1. CPU-X goes offline and back online: asid_generation resets to 1,\n     next_asid = max_asid + 1.\n\n  2. One or more vCPUs migrate to CPU-X and call new_asid(), wrapping\n     the pool and consuming ASIDs starting from min_asid.  Eventually\n     vCPU-B from a different VM is assigned asid_generation=2, ASID=N\n     — the same ASID that vCPU-A held before the hotplug.\n\n  3. vCPU-A enters pre_svm_run() on CPU-X: current_vmcb->cpu is\n     unchanged so the migration branch is skipped.  Its saved\n     asid_generation=2 matches sd->asid_generation=2, so the generation\n     check silently passes and vCPU-A continues running with ASID=N —\n     the same ASID just freshly assigned to vCPU-B.\n\nBoth vCPUs from different VMs now run on CPU-X with the same ASID,\ncausing them to share NPT TLB entries and producing stale translations.\n\nThe collision manifests as a KVM internal error (Suberror: 1, emulation\nfailure).  The NPT page fault reports a faulting GPA far outside the\nVM's physical memory range — a sign of stale TLB translations being\nused.  KVM falls back to instruction emulation, which fails on\nFPU/XSave instructions (XRSTOR, STMXCSR) that the emulator does not\nimplement.\n\nFix this by incrementing asid_generation instead of resetting it to 1\nin svm_enable_virtualization_cpu().  On module load, asid_generation\nstarts at 0 (memset) and the increment produces 1, identical to the\nold behaviour.  On subsequent hotplug cycles the generation advances\nbeyond any value a vCPU previously observed on this CPU, so the\ngeneration check in pre_svm_run() reliably forces new_asid() on every\nvCPU after every hotplug cycle.","source":"cvelist"}],"published":"2026-08-10T11:58:05.933Z","modified":"2026-11-30T16:13:21.673Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"774c47f1d78e373a6bd2964f4e278d1ce26c21cb","fixed":"2028b81321dc757b6875b99c10d908e349c141e2","status":"affected"},{"type":"git","introduced":"774c47f1d78e373a6bd2964f4e278d1ce26c21cb","fixed":"60283726f2845bd78b95efbd0e50b93944780477","status":"affected"},{"type":"git","introduced":"774c47f1d78e373a6bd2964f4e278d1ce26c21cb","fixed":"7508916b4b55d6f5ecc68cd09774dabd3a6b4440","status":"affected"},{"type":"git","introduced":"774c47f1d78e373a6bd2964f4e278d1ce26c21cb","fixed":"0f33b1c457c2199ed130b92cc2ff363a3f7b9415","status":"affected"},{"type":"git","introduced":"774c47f1d78e373a6bd2964f4e278d1ce26c21cb","fixed":"6b542d116acecb83a1ca34e8eace304cff6a4ec9","status":"affected"},{"type":"git","introduced":"774c47f1d78e373a6bd2964f4e278d1ce26c21cb","fixed":"25f744ffa0c8e799e06250ce2e618367b166b0d4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.21","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.21","status":"unaffected"},{"type":"semver","introduced":"6.1.183","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.148","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.101","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.42","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.6","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/2028b81321dc757b6875b99c10d908e349c141e2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/60283726f2845bd78b95efbd0e50b93944780477","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7508916b4b55d6f5ecc68cd09774dabd3a6b4440","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0f33b1c457c2199ed130b92cc2ff363a3f7b9415","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6b542d116acecb83a1ca34e8eace304cff6a4ec9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/25f744ffa0c8e799e06250ce2e618367b166b0d4","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-06T16:42:24.942Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-68093","url":"https://www.cve.org/CVERecord?id=CVE-2026-68093","licence":"CVE Terms of Use","modified":"2026-11-06T16:44:58.589Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-68093","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68093","licence":"Public domain","modified":"2026-11-30T16:13:21.673Z"}],"updatedAt":"2026-11-30T16:17:22.051Z","epss":{"score":0.00186,"percentile":0.08634,"date":"2026-12-01T12:00:22.000Z"}}