Descrizione

In the Linux kernel, the following vulnerability has been resolved: ipv6: ioam: fix heap buffer overflow in __ioam6_fill_trace_data() On the receive path, __ioam6_fill_trace_data() uses trace->nodelen to decide how much data to write for each node. It trusts this field as-is from the incoming packet, with no consistency check against trace->type (the 24-bit field that tells which data items are present). A crafted packet can set nodelen=0 while setting type bits 0-21, causing the function to write ~100 bytes past the allocated region (into skb_shared_info), which corrupts adjacent heap memory and leads to a kernel panic. Add a shared helper ioam6_trace_compute_nodelen() in ioam6.c to derive the expected nodelen from the type field, and use it: - in ioam6_iptunnel.c (send path, existing validation) to replace the open-coded computation; - in exthdrs.c (receive path, ipv6_hop_ioam) to drop packets whose nodelen is inconsistent with the type field, before any data is written. Per RFC 9197, bits 12-21 are each short (4-octet) fields, so they are included in IOAM6_MASK_SHORT_FIELDS (changed from 0xff100000 to 0xff1ffc00).

Testo originale del record CVE (in inglese).

Come correggere

Priorità: Alta — pianificare la correzione entro pochi giorni. Motivazione: CVSS 9.8.

Versioni da aggiornare

  • Linux Linux Kernel: vulnerabili le versioni dalla 5.15 precedenti alla 5.15.202 → aggiornare alla 5.15.202 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 5.16 precedenti alla 6.1.165 → aggiornare alla 6.1.165 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.2 precedenti alla 6.6.128 → aggiornare alla 6.6.128 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.7 precedenti alla 6.12.75 → aggiornare alla 6.12.75 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.13 precedenti alla 6.18.16 → aggiornare alla 6.18.16 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.19 precedenti alla 6.19.6 → aggiornare alla 6.19.6 o successiva.

Patch e advisory

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

  1. Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
  2. Confrontare la versione installata con quelle indicate sopra.
  3. Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
  4. Ripetere la scansione per confermare la correzione.

Configurazioni interessate

VendorProdottoVersioni vulnerabiliCorretta in
Linux Linux Kernel ≥ 5.15 < 5.15.202 5.15.202
Linux Linux Kernel ≥ 5.16 < 6.1.165 6.1.165
Linux Linux Kernel ≥ 6.2 < 6.6.128 6.6.128
Linux Linux Kernel ≥ 6.7 < 6.12.75 6.12.75
Linux Linux Kernel ≥ 6.13 < 6.18.16 6.18.16
Linux Linux Kernel ≥ 6.19 < 6.19.6 6.19.6

Riferimenti