Descrizione
In the Linux kernel, the following vulnerability has been resolved: net: cpsw_new: Fix potential unregister of netdev that has not been registered yet If an error occurs during register_netdev() for the first MAC in cpsw_register_ports(), even though cpsw->slaves[0].ndev is set to NULL, cpsw->slaves[1].ndev would remain unchanged. This could later cause cpsw_unregister_ports() to attempt unregistering the second MAC. To address this, add a check for ndev->reg_state before calling unregister_netdev(). With this change, setting cpsw->slaves[i].ndev to NULL becomes unnecessary and can be removed accordingly.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
5.5precedenti alla6.18.16→ aggiornare alla6.18.16o 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/29739ec197ed66535bc0b86f14a…
- Patch: git.kernel.org/stable/c/349c4cac6f54a81fc107589771f…
- Patch: git.kernel.org/stable/c/9d724b34fbe13b71865ad0906a4…
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 | ≥ 5.5 < 6.18.16 | 6.18.16 |
| Linux | Linux Kernel | ≥ 6.19 < 6.19.6 | 6.19.6 |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/29739ec197ed66535bc0b86f14ab66c5f4512138
- Patchhttps://git.kernel.org/stable/c/349c4cac6f54a81fc107589771f88136a2b20415
- Patchhttps://git.kernel.org/stable/c/9d724b34fbe13b71865ad0906a4be97571f19cf5
- Riferimentohttps://git.kernel.org/stable/c/14645799ad5253a028cf662e2f9cd18a68f74b31
- Riferimentohttps://git.kernel.org/stable/c/23acc565186ee27e788408cbd81b92730b6aaa3a
- Riferimentohttps://git.kernel.org/stable/c/67cca9df4d17f2c824655d31195b2e75334ae286
- Riferimentohttps://git.kernel.org/stable/c/d31a12cee10bbc12b4b523a4709fd1fdee8b7d0f
- Riferimentohttps://git.kernel.org/stable/c/da8e1623a3028e1d8c75eec7898d94c6f17dce40