Descrizione

In the Linux kernel, the following vulnerability has been resolved: net/sched: cls_api: Handle TC_ACT_CONSUMED in tcf_qevent_handle tcf_classify() can return TC_ACT_CONSUMED while the skb is held by the defragmentation engine (e.g. act_ct on out-of-order fragments). When that happens the skb is no longer owned by the caller and must not be touched again. tcf_qevent_handle() did not handle TC_ACT_CONSUMED: it fell through the switch and returned the skb to the caller as if classification had passed. The only qdisc that wires up qevents today is RED, via three call sites (qe_mark on RED_PROB_MARK/HARD_MARK, qe_early_drop on congestion_drop) red_enqueue() was continuing to operate on an skb it no longer owns in this case -- enqueueing it, dropping it, or updating statistics. Resulting in a UAF. tc qdisc add dev eth0 root handle 1: red ... qevent early_drop block 10 tc filter add block 10 ... action ct (with ct defrag enabled and traffic that produces out-of-order fragments, e.g. a fragmented UDP stream) Handle TC_ACT_CONSUMED in tcf_qevent_handle() the same way the ingress and egress fast paths do: treat it as stolen and return NULL without touching the skb. Unlike the TC_ACT_STOLEN case, the skb must not be dropped/freed here, as it is no longer owned by us.

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.148 precedenti alla 5.15.212 → aggiornare alla 5.15.212 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.1.75 precedenti alla 6.1.178 → aggiornare alla 6.1.178 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.6.14 precedenti alla 6.6.145 → aggiornare alla 6.6.145 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.7.2 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.

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.148 < 5.15.212 5.15.212
Linux Linux Kernel ≥ 6.1.75 < 6.1.178 6.1.178
Linux Linux Kernel ≥ 6.6.14 < 6.6.145 6.6.145
Linux Linux Kernel ≥ 6.7.2 < 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

Riferimenti