Descrizione
In the Linux kernel, the following vulnerability has been resolved: netfilter: nfnetlink_osf: fix potential NULL dereference in ttl check The nf_osf_ttl() function accessed skb->dev to perform a local interface address lookup without verifying that the device pointer was valid. Additionally, the implementation utilized an in_dev_for_each_ifa_rcu loop to match the packet source address against local interface addresses. It assumed that packets from the same subnet should not see a decrement on the initial TTL. A packet might appear it is from the same subnet but it actually isn't especially in modern environments with containers and virtual switching. Remove the device dereference and interface loop. Replace the logic with a switch statement that evaluates the TTL according to the ttl_check.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
2.6.31precedenti 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.141→ aggiornare alla6.6.141o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.91→ aggiornare alla6.12.91o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti 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/5d05de2f0928d81309a815ecc76…
- Patch: git.kernel.org/stable/c/711987ba281fd806322a7cd244e…
- Patch: git.kernel.org/stable/c/79b90a96688e521771fa6ed3dc7…
- Patch: git.kernel.org/stable/c/83fc5dd63455a779ea2dd0f7ffe…
- Patch: git.kernel.org/stable/c/95be653a76793856ff8b2d8bd82…
- Patch: git.kernel.org/stable/c/c996a90f3071cf43683e5423da3…
- Patch: git.kernel.org/stable/c/edc806f9122961f0d3819f7c69c…
- Patch: git.kernel.org/stable/c/f4de0777e4554a7de19c920accd…
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 | ≥ 2.6.31 < 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.141 | 6.6.141 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.91 | 6.12.91 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.33 | 6.18.33 |
| Linux | Linux Kernel | ≥ 6.19 < 7.0.10 | 7.0.10 |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/5d05de2f0928d81309a815ecc76d1a3ad72cbc16
- Patchhttps://git.kernel.org/stable/c/711987ba281fd806322a7cd244e98e2a81903114
- Patchhttps://git.kernel.org/stable/c/79b90a96688e521771fa6ed3dc7864b76b8df293
- Patchhttps://git.kernel.org/stable/c/83fc5dd63455a779ea2dd0f7ffee3c920919d80b
- Patchhttps://git.kernel.org/stable/c/95be653a76793856ff8b2d8bd82c2943c23f5ca8
- Patchhttps://git.kernel.org/stable/c/c996a90f3071cf43683e5423da31aadbe002b8b4
- Patchhttps://git.kernel.org/stable/c/edc806f9122961f0d3819f7c69c14cccde31f277
- Patchhttps://git.kernel.org/stable/c/f4de0777e4554a7de19c920accde6319dd530782
- Riferimentohttps://cert-portal.siemens.com/productcert/html/ssa-019113.html
- Riferimentohttps://cert-portal.siemens.com/productcert/html/ssa-457936.html