Descrizione
In the Linux kernel, the following vulnerability has been resolved: net: mana: Guard mana_remove against double invocation If PM resume fails (e.g., mana_attach() returns an error), mana_probe() calls mana_remove(), which tears down the device and sets gd->gdma_context = NULL and gd->driver_data = NULL. However, a failed resume callback does not automatically unbind the driver. When the device is eventually unbound, mana_remove() is invoked a second time. Without a NULL check, it dereferences gc->dev with gc == NULL, causing a kernel panic. Add an early return if gdma_context or driver_data is NULL so the second invocation is harmless. Move the dev = gc->dev assignment after the guard so it cannot dereference NULL.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
5.16precedenti alla6.18.33→ aggiornare alla6.18.33o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.0.10→ aggiornare alla7.0.10o successiva.
Patch e advisory
- Patch: git.kernel.org/stable/c/50271d7ec95144d26808025b508…
- Patch: git.kernel.org/stable/c/a1ddfd2c0b7a48e5239fadd2a24…
- Patch: git.kernel.org/stable/c/bbe5c3c570645a4ceb120979d3e…
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 | ≥ 5.16 < 6.18.33 | 6.18.33 |
| Linux | Linux Kernel | ≥ 6.19 < 7.0.10 | 7.0.10 |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/50271d7ec95144d26808025b508f463780517d3c
- Patchhttps://git.kernel.org/stable/c/a1ddfd2c0b7a48e5239fadd2a24cc4bc2cda90e6
- Patchhttps://git.kernel.org/stable/c/bbe5c3c570645a4ceb120979d3ee203a1583d775
- Riferimentohttps://git.kernel.org/stable/c/793bf1f4e469c51d0e39199823da5e1de85a2741
- Riferimentohttps://git.kernel.org/stable/c/8ee85b75a72216c857c39457f6595709c4c9f856
- Riferimentohttps://git.kernel.org/stable/c/f63a6d2e4167703611f5c2602eaa1a23f635430f