Descrizione
In the Linux kernel, the following vulnerability has been resolved: bpf: reject short IPv4/IPv6 inputs in bpf_prog_test_run_skb bpf_prog_test_run_skb() calls eth_type_trans() first and then uses skb->protocol to initialize sk family and address fields for the test run. For IPv4 and IPv6 packets, it may access ip_hdr(skb) or ipv6_hdr(skb) even when the provided test input only contains an Ethernet header. Reject the input earlier if the Ethernet frame carries IPv4/IPv6 EtherType but the L3 header is too short. Fold the IPv4/IPv6 header length checks into the existing protocol switch and return -EINVAL before accessing the network headers.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
5.9precedenti 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/0a04db240effd85773f66244645…
- Patch: git.kernel.org/stable/c/12bec2bd4b76d81c5d3996bd14e…
- Patch: git.kernel.org/stable/c/1f882c492d46f90bdb36f493687…
- Patch: git.kernel.org/stable/c/6a9f38d5ff11e00bc54baab7526…
- Patch: git.kernel.org/stable/c/6def5fe753cbe5b279ee5fd1032…
- Patch: git.kernel.org/stable/c/7254267799d083280c0e53effc1…
- Patch: git.kernel.org/stable/c/8042240412de3222d27b31e89d2…
- Patch: git.kernel.org/stable/c/e6aa481f21fc7a41ed344767ea2…
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.9 < 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/0a04db240effd85773f66244645a28cedddb72d2
- Patchhttps://git.kernel.org/stable/c/12bec2bd4b76d81c5d3996bd14ec1b7f4d983747
- Patchhttps://git.kernel.org/stable/c/1f882c492d46f90bdb36f4936876c88c28dab21c
- Patchhttps://git.kernel.org/stable/c/6a9f38d5ff11e00bc54baab752642978805e81eb
- Patchhttps://git.kernel.org/stable/c/6def5fe753cbe5b279ee5fd10327b2611cbddaca
- Patchhttps://git.kernel.org/stable/c/7254267799d083280c0e53effc101a33add95f7b
- Patchhttps://git.kernel.org/stable/c/8042240412de3222d27b31e89d29336961cad9e4
- Patchhttps://git.kernel.org/stable/c/e6aa481f21fc7a41ed344767ea25aae9d03fae71