Descrizione
In the Linux kernel, the following vulnerability has been resolved: virtio_blk: use synchronous quiesce in virtblk_freeze_priv() blk_mq_run_work_fn() can call blk_mq_sched_dispatch_requests() through blk_mq_run_dispatch_ops(). The dispatcher checks QUEUE_FLAG_QUIESCED while the flag is clear. It can then be preempted before it gets a request. At that time, it has no queue usage reference, so blk_mq_freeze_queue() does not wait for it. virtblk_freeze_priv() then calls blk_mq_quiesce_queue_nowait() and blk_mq_unfreeze_queue(). A new request can enter the queue. The old dispatcher can run again, use its old flag check, get the new request, and call virtio_queue_rq(). At the same time, virtblk_freeze_priv() can reset the device, delete the virtqueues, and free vblk->vqs. The old dispatcher can then use a deleted virtqueue or a NULL vblk->vqs, and the kernel can crash. Fix this by using blk_mq_quiesce_queue(), which waits for dispatch code that was already running. Keep the existing freeze and unfreeze order. The queue remains quiesced until virtblk_restore_priv() calls blk_mq_unquiesce_queue().
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: EPSS 0.2% (percentile 7).
Versioni da aggiornare
- Linux Linux: vulnerabili le versioni dalla
5.4.289precedenti alla5.5→ aggiornare alla5.5o successiva. - Linux Linux: vulnerabili le versioni dalla
5.10.233precedenti alla5.11→ aggiornare alla5.11o successiva. - Linux Linux: vulnerabili le versioni dalla
5.15.176precedenti alla5.16→ aggiornare alla5.16o successiva. - Linux Linux: vulnerabili le versioni dalla
6.1.123precedenti alla6.2→ aggiornare alla6.2o successiva. - Linux Linux: vulnerabili le versioni dalla
6.6.69precedenti alla6.7→ aggiornare alla6.7o successiva. - Linux Linux: vulnerabili le versioni dalla
6.12.8precedenti alla6.13→ aggiornare alla6.13o successiva. - Linux Linux: versione corretta
6.18.64(o successiva). - Linux Linux: versione corretta
7.3.5(o successiva). - Linux Linux: versione corretta
7.4-rc2(o successiva). - Linux Linux: vulnerabile la versione
6.13→ installare l'ultima release supportata dal vendor.
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 | ≥ 5.4.289 < 5.5 | 5.5 |
| Linux | Linux | ≥ 5.10.233 < 5.11 | 5.11 |
| Linux | Linux | ≥ 5.15.176 < 5.16 | 5.16 |
| Linux | Linux | ≥ 6.1.123 < 6.2 | 6.2 |
| Linux | Linux | ≥ 6.6.69 < 6.7 | 6.7 |
| Linux | Linux | ≥ 6.12.8 < 6.13 | 6.13 |
| Linux | Linux | — | 6.18.64 |
| Linux | Linux | — | 7.3.5 |
| Linux | Linux | — | 7.4-rc2 |
| Linux | Linux | 6.13 | — |
Riferimenti
- Riferimentohttps://git.kernel.org/stable/c/18a5462ff15b344e55bf724589b4de55e4ce91cb
- Riferimentohttps://git.kernel.org/stable/c/36da437dbc2ea1ae9cbe7cb2441fd8ffb4524504
- Riferimentohttps://git.kernel.org/stable/c/4ad659b3a1f5716cc270bf62f4e79f4f95ca5443
- Riferimentohttps://git.kernel.org/stable/c/55cc03a17478e7da75df133a4d94ffa47856fee6
- Riferimentohttps://git.kernel.org/stable/c/6c6dec7883f8eb10b326bc9d109a4990c885d949
- Riferimentohttps://git.kernel.org/stable/c/6f15e64dcecbd386badc05189116c18cadd69b74
- Riferimentohttps://git.kernel.org/stable/c/76f6e24c08a613361fb636d492934cda705d8890
- Riferimentohttps://git.kernel.org/stable/c/9971bc421b3942c2d63f8867fac2780d04610f62