Descrizione
In the Linux kernel, the following vulnerability has been resolved: scsi: isci: Fix use-after-free in device removal path The ISCI completion tasklet is initialized in isci_host_alloc() (drivers/scsi/isci/init.c:496) and scheduled from both MSI-X and legacy interrupt handlers (drivers/scsi/isci/host.c:223,613). isci_host_deinit() stops the controller and waits for stop completion, but it never kills completion_tasklet before teardown continues. A top-of-function tasklet_kill() is not sufficient here: interrupts are only disabled when isci_host_stop_complete() runs, so until wait_for_stop() returns the IRQ handlers can still requeue the tasklet. The tasklet callback also re-enables interrupts after draining completions, so killing the tasklet before the source is quiesced leaves the same race open. Once wait_for_stop() returns, no further IRQ-driven scheduling can occur. Kill completion_tasklet there so teardown cannot race a queued tasklet running on a dead ihost. On remove or unload, the stale callback can otherwise dereference ihost and touch ihost->smu_registers after the host lifetime ends. A UML + KASAN analogue reproduced the failure class both with no tasklet_kill() and with tasklet_kill() placed before source quiesce, and stayed clean once the kill happened after quiescing the scheduling source. This mirrors commit f6ab594672d4 ("scsi: aic94xx: fix use-after-free in device removal path"), but ISCI needs the kill after wait_for_stop().
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.8.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
3.0.1precedenti alla5.10.258→ aggiornare alla5.10.258o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.11precedenti alla5.15.209→ aggiornare alla5.15.209o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.16precedenti alla6.1.175→ aggiornare alla6.1.175o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.2precedenti alla6.6.142→ aggiornare alla6.6.142o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.92→ aggiornare alla6.12.92o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.34→ aggiornare alla6.18.34o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.0.11→ aggiornare alla7.0.11o successiva. - Linux Linux Kernel: vulnerabile la versione
3.0→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
3.0 rc6→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
3.0 rc7→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.1 rc1→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.1 rc2→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.1 rc3→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.1 rc4→ installare l'ultima release supportata dal vendor.
Patch e advisory
- Patch: git.kernel.org/stable/c/1412995e10c74644b47f242aea6…
- Patch: git.kernel.org/stable/c/309c6058622d080fe8c2fab87c3…
- Patch: git.kernel.org/stable/c/6d40f2f103bb30f52f3dbadbe2c…
- Patch: git.kernel.org/stable/c/a83d3e4daba40d49324cec1c51e…
- Patch: git.kernel.org/stable/c/ab2266601a875982f2d2033f41e…
- Patch: git.kernel.org/stable/c/b52a8d52c3125ec9a93106ed816…
- Patch: git.kernel.org/stable/c/b9ff8631006233ba246828ac704…
- Patch: git.kernel.org/stable/c/cb9e72c50e6c81a5903f27e0b39…
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre la superficie esposta (disattivare servizi e funzionalità inutilizzati), mantenere attive le protezioni del sistema operativo (ASLR, DEP/NX) e segmentare la rete.
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 | ≥ 3.0.1 < 5.10.258 | 5.10.258 |
| Linux | Linux Kernel | ≥ 5.11 < 5.15.209 | 5.15.209 |
| Linux | Linux Kernel | ≥ 5.16 < 6.1.175 | 6.1.175 |
| Linux | Linux Kernel | ≥ 6.2 < 6.6.142 | 6.6.142 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.92 | 6.12.92 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.34 | 6.18.34 |
| Linux | Linux Kernel | ≥ 6.19 < 7.0.11 | 7.0.11 |
| Linux | Linux Kernel | 3.0 | — |
| Linux | Linux Kernel | 3.0 rc6 | — |
| Linux | Linux Kernel | 3.0 rc7 | — |
| Linux | Linux Kernel | 7.1 rc1 | — |
| Linux | Linux Kernel | 7.1 rc2 | — |
| Linux | Linux Kernel | 7.1 rc3 | — |
| Linux | Linux Kernel | 7.1 rc4 | — |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/1412995e10c74644b47f242aea6e4f3d4180e806
- Patchhttps://git.kernel.org/stable/c/309c6058622d080fe8c2fab87c30da82d834d989
- Patchhttps://git.kernel.org/stable/c/6d40f2f103bb30f52f3dbadbe2c3fdf274a9763c
- Patchhttps://git.kernel.org/stable/c/a83d3e4daba40d49324cec1c51ed261e1ea48cf1
- Patchhttps://git.kernel.org/stable/c/ab2266601a875982f2d2033f41e070a6d5e615e2
- Patchhttps://git.kernel.org/stable/c/b52a8d52c3125ec9a93106ed816582368de34426
- Patchhttps://git.kernel.org/stable/c/b9ff8631006233ba246828ac70409d2cb2da38d3
- Patchhttps://git.kernel.org/stable/c/cb9e72c50e6c81a5903f27e0b397ce8525d7539b