Descrizione

In the Linux kernel, the following vulnerability has been resolved: usbnet: gl620a: fix out-of-bounds read in genelink_rx_fixup() genelink_rx_fixup() splits an aggregated RX frame into its individual packets, using a per-packet length taken from device-supplied data. That length is only bounded by GL_MAX_PACKET_LEN (1514); it is never compared against how many bytes were actually received. A malicious GeneLink (GL620A) device can therefore send a short URB whose header claims packet_count > 1 and a first packet of up to 1514 bytes. skb_put_data(gl_skb, packet->packet_data, size); then copies past the end of the receive buffer and hands the adjacent slab contents up the network stack, an out-of-bounds read that leaks kernel heap. No privilege is required: the path runs in the usbnet RX softirq as soon as the interface is up. BUG: KASAN: slab-out-of-bounds in genelink_rx_fixup (drivers/net/usb/gl620a.c:112) Read of size 1514 at addr ffff888011309708 by task ksoftirqd/0/14 Call Trace: ... __asan_memcpy (mm/kasan/shadow.c:105) genelink_rx_fixup (include/linux/skbuff.h:2814 drivers/net/usb/gl620a.c:112) usbnet_bh (drivers/net/usb/usbnet.c:572 drivers/net/usb/usbnet.c:1589) process_one_work (kernel/workqueue.c:3322) bh_worker (kernel/workqueue.c:3405) tasklet_action (kernel/softirq.c:965) handle_softirqs (kernel/softirq.c:622) run_ksoftirqd (kernel/softirq.c:1076) ... skb_pull() already verifies that the requested length fits the buffer and returns NULL otherwise. Move it ahead of the copy and check its result, so a packet that overruns the received data is rejected before it is read. Well-formed frames, whose packets are fully present, are unaffected.

Testo originale del record CVE (in inglese).

Come correggere

Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.1.

Versioni da aggiornare

  • Linux Linux Kernel: vulnerabili le versioni dalla 2.6.14 precedenti alla 5.10.261 → aggiornare alla 5.10.261 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 5.11 precedenti alla 5.15.212 → aggiornare alla 5.15.212 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 5.16 precedenti alla 6.1.178 → aggiornare alla 6.1.178 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.2 precedenti alla 6.6.145 → aggiornare alla 6.6.145 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.7 precedenti alla 6.12.97 → aggiornare alla 6.12.97 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.13 precedenti alla 6.18.40 → aggiornare alla 6.18.40 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.19 precedenti alla 7.1.5 → aggiornare alla 7.1.5 o successiva.
  • Linux Linux Kernel: vulnerabile la versione 7.2 rc1 → installare l'ultima release supportata dal vendor.

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 ≥ 2.6.14 < 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
Linux Linux Kernel 7.2 rc1 —

Riferimenti