Descrizione
In the Linux kernel, the following vulnerability has been resolved: KVM: x86: Ignore -EBUSY when checking nested events from vcpu_block() Ignore -EBUSY when checking nested events after exiting a blocking state while L2 is active, as exiting to userspace will generate a spurious userspace exit, usually with KVM_EXIT_UNKNOWN, and likely lead to the VM's demise. Continuing with the wakeup isn't perfect either, as *something* has gone sideways if a vCPU is awakened in L2 with an injected event (or worse, a nested run pending), but continuing on gives the VM a decent chance of surviving without any major side effects. As explained in the Fixes commits, it _should_ be impossible for a vCPU to be put into a blocking state with an already-injected event (exception, IRQ, or NMI). Unfortunately, userspace can stuff MP_STATE and/or injected events, and thus put the vCPU into what should be an impossible state. Don't bother trying to preserve the WARN, e.g. with an anti-syzkaller Kconfig, as WARNs can (hopefully) be added in paths where _KVM_ would be violating x86 architecture, e.g. by WARNing if KVM attempts to inject an exception or interrupt while the vCPU isn't running.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
6.1precedenti 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.77→ aggiornare alla6.12.77o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.17→ aggiornare alla6.18.17o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla6.19.6→ aggiornare alla6.19.6o successiva.
Patch e advisory
- Patch: git.kernel.org/stable/c/1c957773063ed3264953597e329…
- Patch: git.kernel.org/stable/c/1e88b5f854bdb469424132e0bb4…
- Patch: git.kernel.org/stable/c/2657439265d34a911886b916ba8…
- Patch: git.kernel.org/stable/c/78265cd066d73a5cb41c088fcae…
- Patch: git.kernel.org/stable/c/ead63640d4e72e6f6d464f4e31f…
- Patch: git.kernel.org/stable/c/ec3be7dc9391085a2d96700e159…
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 | ≥ 6.1 < 6.1.167 | 6.1.167 |
| Linux | Linux Kernel | ≥ 6.2 < 6.6.130 | 6.6.130 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.77 | 6.12.77 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.17 | 6.18.17 |
| Linux | Linux Kernel | ≥ 6.19 < 6.19.6 | 6.19.6 |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/1c957773063ed3264953597e32990a748381caf6
- Patchhttps://git.kernel.org/stable/c/1e88b5f854bdb469424132e0bb44793ad7a7c20a
- Patchhttps://git.kernel.org/stable/c/2657439265d34a911886b916ba8be97ecc117d51
- Patchhttps://git.kernel.org/stable/c/78265cd066d73a5cb41c088fcae4a2515e480d97
- Patchhttps://git.kernel.org/stable/c/ead63640d4e72e6f6d464f4e31f7fecb79af8869
- Patchhttps://git.kernel.org/stable/c/ec3be7dc9391085a2d96700e159d66d1328b7ff6