Descrizione

In the Linux kernel, the following vulnerability has been resolved: wifi: p54: validate RX frame length in p54_rx_eeprom_readback() p54_rx_eeprom_readback() copies the requested EEPROM slice out of a device-supplied readback frame without checking that the skb actually holds that many bytes. Commit da1b9a55ff11 ("wifi: p54: prevent buffer-overflow in p54_rx_eeprom_readback()") closed the destination overflow by copying a fixed priv->eeprom_slice_size (and rejecting a mismatched advertised len), but the source side is still unbounded: nothing verifies the frame is long enough to supply that many bytes. A malicious USB device can send a short frame whose advertised len matches priv->eeprom_slice_size while the payload is truncated. The equality check passes and memcpy() reads past the end of the skb, leaking adjacent heap: BUG: KASAN: slab-out-of-bounds in p54_rx (drivers/net/wireless/intersil/p54/txrx.c:507) Read of size 1016 at addr ffff88800f077114 by task swapper/0/0 Call Trace: <IRQ> ... __asan_memcpy (mm/kasan/shadow.c:105) p54_rx (drivers/net/wireless/intersil/p54/txrx.c:507) p54u_rx_cb (drivers/net/wireless/intersil/p54/p54usb.c:163) __usb_hcd_giveback_urb (drivers/usb/core/hcd.c:1657) dummy_timer (drivers/usb/gadget/udc/dummy_hcd.c:2005) ... </IRQ> The buggy address belongs to the object at ffff88800f0770c0 which belongs to the cache skbuff_small_head of size 704 The buggy address is located 84 bytes inside of allocated 704-byte region [ffff88800f0770c0, ffff88800f077380) Check that the slice fits in the skb before copying.

Testo originale del record CVE (in inglese).

Come correggere

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

Versioni da aggiornare

  • Linux Linux Kernel: vulnerabili le versioni dalla 2.6.28 precedenti alla 5.10.265 → aggiornare alla 5.10.265 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 5.11 precedenti alla 5.15.216 → aggiornare alla 5.15.216 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 5.16 precedenti alla 6.1.183 → aggiornare alla 6.1.183 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.2 precedenti alla 6.6.148 → aggiornare alla 6.6.148 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.7 precedenti alla 6.12.101 → aggiornare alla 6.12.101 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.13 precedenti alla 6.18.42 → aggiornare alla 6.18.42 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.19 precedenti alla 7.1.6 → aggiornare alla 7.1.6 o successiva.
  • Linux Linux Kernel: vulnerabile la versione 7.2 rc1 → installare l'ultima release supportata dal vendor.
  • Linux Linux Kernel: vulnerabile la versione 7.2 rc2 → installare l'ultima release supportata dal vendor.
  • Linux Linux Kernel: vulnerabile la versione 7.2 rc3 → 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.28 < 5.10.265 5.10.265
Linux Linux Kernel ≥ 5.11 < 5.15.216 5.15.216
Linux Linux Kernel ≥ 5.16 < 6.1.183 6.1.183
Linux Linux Kernel ≥ 6.2 < 6.6.148 6.6.148
Linux Linux Kernel ≥ 6.7 < 6.12.101 6.12.101
Linux Linux Kernel ≥ 6.13 < 6.18.42 6.18.42
Linux Linux Kernel ≥ 6.19 < 7.1.6 7.1.6
Linux Linux Kernel 7.2 rc1 —
Linux Linux Kernel 7.2 rc2 —
Linux Linux Kernel 7.2 rc3 —

Riferimenti