Descrizione
In the Linux kernel, the following vulnerability has been resolved: s390/cio: Fix device lifecycle handling in css_alloc_subchannel() `css_alloc_subchannel()` calls `device_initialize()` before setting up the DMA masks. If `dma_set_coherent_mask()` or `dma_set_mask()` fails, the error path frees the subchannel structure directly, bypassing the device model reference counting. Once `device_initialize()` has been called, the embedded struct device must be released via `put_device()`, allowing the release callback to free the container structure. Fix the error path by dropping the initial device reference with `put_device()` instead of calling `kfree()` directly. This ensures correct device lifetime handling and avoids potential use-after-free or double-free issues.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
3.10precedenti alla6.6.128→ aggiornare alla6.6.128o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.75→ aggiornare alla6.12.75o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.14→ aggiornare alla6.18.14o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla6.19.4→ aggiornare alla6.19.4o successiva.
Patch e advisory
- Patch: git.kernel.org/stable/c/6715560527e343a387e4a0d2e6c…
- Patch: git.kernel.org/stable/c/abb6e07f46a740cda4f07d1b561…
- Patch: git.kernel.org/stable/c/c35cfbb5341ba05ad1b4476ffc3…
- Patch: git.kernel.org/stable/c/f65c75b0b9b5a390bc3beadcde0…
- Patch: git.kernel.org/stable/c/f96c5ccf95ae5f27218c1ce2d6a…
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 | ≥ 3.10 < 6.6.128 | 6.6.128 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.75 | 6.12.75 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.14 | 6.18.14 |
| Linux | Linux Kernel | ≥ 6.19 < 6.19.4 | 6.19.4 |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/6715560527e343a387e4a0d2e6c401748e89fa55
- Patchhttps://git.kernel.org/stable/c/abb6e07f46a740cda4f07d1b561ae4eaa7a1df42
- Patchhttps://git.kernel.org/stable/c/c35cfbb5341ba05ad1b4476ffc3c21cc3ff8f603
- Patchhttps://git.kernel.org/stable/c/f65c75b0b9b5a390bc3beadcde0a6fbc3ad118f7
- Patchhttps://git.kernel.org/stable/c/f96c5ccf95ae5f27218c1ce2d6a3ad2d3e105424