Descrizione
In the Linux kernel, the following vulnerability has been resolved: ipv6: Fix null-ptr-deref in fib6_nh_mtu_change(). fib6_nh_mtu_change() re-fetches idev via __in6_dev_get(arg->dev) and dereferences idev->cnf.mtu6 without a NULL check. addrconf_ifdown() clears dev->ip6_ptr with RCU_INIT_POINTER() after rt6_disable_ip() has released tb6_lock, so the RA-driven MTU walk can observe a NULL idev and oops. The caller rt6_mtu_change_route() guards its own __in6_dev_get(), but this re-fetch is unguarded; nexthop-backed routes survive addrconf_ifdown()'s flush, so the walk still reaches it after ip6_ptr is nulled. Return 0 when idev is NULL, matching rt6_mtu_change_route() and the fib6_mtu() fix in commit 5ad509c1fdad ("ipv6: Fix null-ptr-deref in fib6_mtu()."). Oops: general protection fault, ... KASAN: null-ptr-deref in range [0x00000000000002a8-0x00000000000002af] RIP: 0010:fib6_nh_mtu_change+0x203/0x990 rt6_mtu_change_route+0x141/0x1d0 __fib6_clean_all+0xd0/0x160 rt6_mtu_change+0xb4/0x100 ndisc_router_discovery+0x24b5/0x2cb0 icmpv6_rcv+0x12e9/0x1710 ipv6_rcv+0x39b/0x410
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
5.3precedenti alla5.10.261→ aggiornare alla5.10.261o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.11precedenti alla5.15.212→ aggiornare alla5.15.212o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.16precedenti alla6.1.178→ aggiornare alla6.1.178o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.2precedenti alla6.6.145→ aggiornare alla6.6.145o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.97→ aggiornare alla6.12.97o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.40→ aggiornare alla6.18.40o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.1.5→ aggiornare alla7.1.5o successiva. - Siemens Simatic S7-1500 Cpu 1518-4 Pn/Dp Mfp Firmware: vulnerabile la versione
3.1.6→ installare l'ultima release supportata dal vendor. - Siemens Simatic S7-1500 Cpu 1518-4 Pn/Dp Mfp Firmware: vulnerabile la versione
3.1.7→ installare l'ultima release supportata dal vendor. - Siemens Simatic S7-1500 Cpu 1518f-4 Pn/Dp Mfp Firmware: vulnerabile la versione
3.1.6→ installare l'ultima release supportata dal vendor. - Siemens Simatic S7-1500 Cpu 1518f-4 Pn/Dp Mfp Firmware: vulnerabile la versione
3.1.7→ installare l'ultima release supportata dal vendor. - Siemens Siplus S7-1500 Cpu 1518-4 Pn/Dp Mfp Firmware: vulnerabile la versione
3.1.6→ installare l'ultima release supportata dal vendor. - Siemens Siplus S7-1500 Cpu 1518-4 Pn/Dp Mfp Firmware: vulnerabile la versione
3.1.7→ installare l'ultima release supportata dal vendor.
Patch e advisory
- Patch: git.kernel.org/stable/c/1451deca9896957159f0666520a…
- Patch: git.kernel.org/stable/c/302d57ed7872838b40e56a868fb…
- Patch: git.kernel.org/stable/c/46c3b8191aad3d032776bf3bebf…
- Patch: git.kernel.org/stable/c/6428634f7a0b7878144b4925c37…
- Patch: git.kernel.org/stable/c/80600b5d0f3ecb9324120dc95b5…
- Patch: git.kernel.org/stable/c/b0d0eb13a0441a8ebf4f227843d…
- Patch: git.kernel.org/stable/c/b2c70dd3326809429b709a9c7e9…
- Patch: git.kernel.org/stable/c/d08d019f2f43a6f9a71e81868bb…
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.3 < 5.10.261 | 5.10.261 |
| Linux | Linux Kernel | ≥ 5.11 < 5.15.212 | 5.15.212 |
| Linux | Linux Kernel | ≥ 5.16 < 6.1.178 | 6.1.178 |
| Linux | Linux Kernel | ≥ 6.2 < 6.6.145 | 6.6.145 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.97 | 6.12.97 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.40 | 6.18.40 |
| Linux | Linux Kernel | ≥ 6.19 < 7.1.5 | 7.1.5 |
| Siemens | Simatic S7-1500 Cpu 1518-4 Pn/Dp Mfp Firmware | 3.1.6 | — |
| Siemens | Simatic S7-1500 Cpu 1518-4 Pn/Dp Mfp Firmware | 3.1.7 | — |
| Siemens | Simatic S7-1500 Cpu 1518f-4 Pn/Dp Mfp Firmware | 3.1.6 | — |
| Siemens | Simatic S7-1500 Cpu 1518f-4 Pn/Dp Mfp Firmware | 3.1.7 | — |
| Siemens | Siplus S7-1500 Cpu 1518-4 Pn/Dp Mfp Firmware | 3.1.6 | — |
| Siemens | Siplus S7-1500 Cpu 1518-4 Pn/Dp Mfp Firmware | 3.1.7 | — |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/1451deca9896957159f0666520a792c1b861af4f
- Patchhttps://git.kernel.org/stable/c/302d57ed7872838b40e56a868fb4c7da7da606e9
- Patchhttps://git.kernel.org/stable/c/46c3b8191aad3d032776bf3bebf03efdf5f4b905
- Patchhttps://git.kernel.org/stable/c/6428634f7a0b7878144b4925c37856bef3224967
- Patchhttps://git.kernel.org/stable/c/80600b5d0f3ecb9324120dc95b5e915130f516c5
- Patchhttps://git.kernel.org/stable/c/b0d0eb13a0441a8ebf4f227843deaf494f1e2c33
- Patchhttps://git.kernel.org/stable/c/b2c70dd3326809429b709a9c7e9220d29923051a
- Patchhttps://git.kernel.org/stable/c/d08d019f2f43a6f9a71e81868bbc326b3afaf37b
- Advisory del vendorhttps://cert-portal.siemens.com/productcert/html/ssa-019113.html
- Advisory del vendorhttps://cert-portal.siemens.com/productcert/html/ssa-457936.html