Descrizione
In the Linux kernel, the following vulnerability has been resolved: KVM: SVM: Set/clear CR8 write interception when AVIC is (de)activated Explicitly set/clear CR8 write interception when AVIC is (de)activated to fix a bug where KVM leaves the interception enabled after AVIC is activated. E.g. if KVM emulates INIT=>WFS while AVIC is deactivated, CR8 will remain intercepted in perpetuity. On its own, the dangling CR8 intercept is "just" a performance issue, but combined with the TPR sync bug fixed by commit d02e48830e3f ("KVM: SVM: Sync TPR from LAPIC into VMCB::V_TPR even if AVIC is active"), the danging intercept is fatal to Windows guests as the TPR seen by hardware gets wildly out of sync with reality. Note, VMX isn't affected by the bug as TPR_THRESHOLD is explicitly ignored when Virtual Interrupt Delivery is enabled, i.e. when APICv is active in KVM's world. I.e. there's no need to trigger update_cr8_intercept(), this is firmly an SVM implementation flaw/detail. WARN if KVM gets a CR8 write #VMEXIT while AVIC is active, as KVM should never enter the guest with AVIC enabled and CR8 writes intercepted. [Squash fix to avic_deactivate_vmcb. - Paolo]
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
4.7precedenti alla6.1.167→ aggiornare alla6.1.167o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.2precedenti alla6.6.130→ aggiornare alla6.6.130o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.78→ aggiornare alla6.12.78o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.19→ aggiornare alla6.18.19o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla6.19.9→ aggiornare alla6.19.9o successiva. - Linux Linux Kernel: vulnerabile la versione
7.0 rc1→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.0 rc2→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.0 rc3→ installare l'ultima release supportata dal vendor.
Patch e advisory
- Patch: git.kernel.org/stable/c/01651e7751edbbc0fb4598f8367…
- Patch: git.kernel.org/stable/c/737410b32bd615b321da4fbeda4…
- Patch: git.kernel.org/stable/c/816fa1dfae4532e851b1fe6b243…
- Patch: git.kernel.org/stable/c/87d0f901a9bd8ae6be57249c737…
- Patch: git.kernel.org/stable/c/a4123fe5d9122eef9852e4921f7…
- Patch: git.kernel.org/stable/c/ba3bca40f9f25c053f69413e5f4…
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre l'esposizione del componente vulnerabile (segmentazione, accesso solo da reti fidate) finché la patch non è applicata.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Linux | Linux Kernel | ≥ 4.7 < 6.1.167 | 6.1.167 |
| Linux | Linux Kernel | ≥ 6.2 < 6.6.130 | 6.6.130 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.78 | 6.12.78 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.19 | 6.18.19 |
| Linux | Linux Kernel | ≥ 6.19 < 6.19.9 | 6.19.9 |
| Linux | Linux Kernel | 7.0 rc1 | — |
| Linux | Linux Kernel | 7.0 rc2 | — |
| Linux | Linux Kernel | 7.0 rc3 | — |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/01651e7751edbbc0fb4598f8367a3dabcfc8c182
- Patchhttps://git.kernel.org/stable/c/737410b32bd615b321da4fbeda490351b9af5e8b
- Patchhttps://git.kernel.org/stable/c/816fa1dfae4532e851b1fe6b2434c753ecbd86c7
- Patchhttps://git.kernel.org/stable/c/87d0f901a9bd8ae6be57249c737f20ac0cace93d
- Patchhttps://git.kernel.org/stable/c/a4123fe5d9122eef9852e4921f7cc463420f30d4
- Patchhttps://git.kernel.org/stable/c/ba3bca40f9f25c053f69413e5f4a41dd0fd762bf