CVE-2026-68093
Beschrijving NL
In de Linux kernel is de volgende kwetsbaarheid verholpen:
KVM: SVM: Bump asid_generation op CPU online om ASID botsing na hotplug te voorkomen
Als een vCPU gepland (of geblokkeerd) blijft terwijl de laatste pCPU liep
op gaat door een hotplug-cyclus (online->offline->online), en de vCPU
hervat vervolgens de uitvoering op dezelfde pCPU, dan is het mogelijk om
uitgevoerd met een ASID die nu is toegewezen aan een andere vCPU,
met als gevolg dat verouderde TLB-vertalingen u SED svm_enable_virtualization_cpu() reset asid_generation naar 1 en stelt
next_asid tot max_asid + 1 op elk online CPU-evenement, inclusief hotplug
cycli. Omdat next_asid buiten de zwembadgrens begint, begint de eerste
bel naar new_asid() nadat een online evenement altijd de pool heeft ingepakt,
het verhogen van asid_generation naar 2 en het toewijzen van ASID's vanaf
min_asid. Overweeg twee vCPU's van verschillende VM's, vCPU-A vastgemaakt aan CPU-X-holding
asid_generation=2 en ASID=N van vóór de hotplug-gebeurtenis:
1. CPU-X gaat offline en weer online: asid_generation wordt gereset naar 1,
next_asid = max_asid + 1. 2. Een of meer vCPU's migreren naar CPU-X en bellen new_asid(), wrapping
het zwembad en het verbruiken van ASID's vanaf min_asid. Uiteindelijk
wordt vCPU-B van een andere VM toegewezen alsid_Generation=2, ASID=N
— dezelfde ASID die vCPU-A voor de hotplug hield. 3. vCPU-A komt in pre_svm_run() op CPU-X: current_vmcb->cpu is
ongewijzigd, zodat de migratietak wordt overgeslagen. De opgeslagen
asid_generation=2 komt overeen metsd-> asid_generation=2, dus de generatie
controleer stilletjes passeert en vCPU-A blijft draaien met ASID=N —
dezelfde ASID die net vers is toegewezen aan vCPU-B. Beide vCPU's van verschillende VM's draaien nu op CPU-X met dezelfde ASID,
waardoor ze NPT TLB-vermeldingen delen en oude vertalingen produceren. De botsing manifesteert zich als een interne KVM-fout (Suberror: 1, emulatie
fout). De NPT-paginafout meldt een defecte GPA ver buiten de
Het fysieke geheugenbereik van VM — een teken dat verouderde TLB-vertalingen
gebruikt. KVM valt terug op instructie-emulatie, die faalt op
FPU/XSave instructies (XRSTOR, STMXCSR) dat de emulator niet
implementeren. Los dit op door asid_generation te verhogen in plaats van het opnieuw in te stellen op 1
in svm_enable_virtualization_cpu(). Bij modulebelasting, asid_generation
begint bij 0 (memset) en de toename produceert 1, identiek aan de
oud gedrag. Bij volgende hotplug-cycli vordert de generatie
voorbij elke waarde die een vCPU eerder op deze CPU heeft waargenomen, dus de
generatiecontrole in pre_svm_run() forceert op betrouwbare wijze new_asid() op elke
vCPU na elke hotplug-cyclus.
Origineel (Engels) tonen
In the Linux kernel, the following vulnerability has been resolved:
KVM: SVM: Bump asid_generation on CPU online to avoid ASID collision after hotplug
If a vCPU stays scheduled out (or blocked) while the last pCPU it ran
on goes through a hotplug cycle (online->offline->online), and the vCPU
then resumes execution on the same pCPU, then it is possible for it to
run with an ASID that has now been assigned to a different vCPU,
resulting in stale TLB translations being used.
svm_enable_virtualization_cpu() resets asid_generation to 1 and sets
next_asid to max_asid + 1 on every CPU online event, including hotplug
cycles. Because next_asid starts beyond the pool boundary, the first
call to new_asid() after an online event always wraps the pool,
incrementing asid_generation to 2 and assigning ASIDs starting from
min_asid.
Consider two vCPUs from different VMs, vCPU-A pinned to CPU-X holding
asid_generation=2 and ASID=N from before the hotplug event:
1. CPU-X goes offline and back online: asid_generation resets to 1,
next_asid = max_asid + 1.
2. One or more vCPUs migrate to CPU-X and call new_asid(), wrapping
the pool and consuming ASIDs starting from min_asid. Eventually
vCPU-B from a different VM is assigned asid_generation=2, ASID=N
— the same ASID that vCPU-A held before the hotplug.
3. vCPU-A enters pre_svm_run() on CPU-X: current_vmcb->cpu is
unchanged so the migration branch is skipped. Its saved
asid_generation=2 matches sd->asid_generation=2, so the generation
check silently passes and vCPU-A continues running with ASID=N —
the same ASID just freshly assigned to vCPU-B.
Both vCPUs from different VMs now run on CPU-X with the same ASID,
causing them to share NPT TLB entries and producing stale translations.
The collision manifests as a KVM internal error (Suberror: 1, emulation
failure). The NPT page fault reports a faulting GPA far outside the
VM's physical memory range — a sign of stale TLB translations being
used. KVM falls back to instruction emulation, which fails on
FPU/XSave instructions (XRSTOR, STMXCSR) that the emulator does not
implement.
Fix this by incrementing asid_generation instead of resetting it to 1
in svm_enable_virtualization_cpu(). On module load, asid_generation
starts at 0 (memset) and the increment produces 1, identical to the
old behaviour. On subsequent hotplug cycles the generation advances
beyond any value a vCPU previously observed on this CPU, so the
generation check in pre_svm_run() reliably forces new_asid() on every
vCPU after every hotplug cycle.