Katalog CVE

CVE-2026-74621

WysokieCVSS 7.5
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.49%

Percentyl 40 - wyżej niż 40% wszystkich znanych CVE

Streszczenie

W jądrze Linux wykryto podatność w module net/sched/act_ct, która powoduje wyciek pamięci sk_buff. Gdy funkcja tcf_ct_handle_fragments() odrzuca pakiet z powodu błędów w nagłówkach (np. -EINVAL, -ENOMEM, -EPROTO), pakiet nie jest zwalniany, a akcja zwraca TC_ACT_CONSUMED, co prowadzi do trwałego wycieku pamięci. Problem został zaobserwowany na wersji v7.2-rc6, gdzie każdy nieprawidłowy pakiet powoduje wyciek obiektu skbuff_head_cache (232 bajty) oraz bufora danych (704 bajty).

Ocena ryzyka

Atakujący może wysyłać specjalnie spreparowane pakiety, które trafiają do reguł łańcucha clsact z akcją 'ct', powodując nieograniczony wyciek pamięci jądra. Może to doprowadzić do wyczerpania pamięci systemowej i w konsekwencji do awarii systemu (DoS).

Rekomendacja

Zaleca się natychmiastowe zastosowanie poprawki z jądra Linux, która rozwiązuje ten problem (commit przywracający zachowanie TC_ACT_SHOT). Należy zaktualizować jądro do wersji zawierającej poprawkę lub zastosować odpowiedni backport.

Inne podatności w Linux kernel

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

In the Linux kernel, the following vulnerability has been resolved: net/sched: act_ct: fix sk_buff leak when the header checks reject a packet tcf_ct_handle_fragments() runs its header sanity checks before handing anything to the defragmentation engine: if (family == NFPROTO_IPV4) err = tcf_ct_ipv4_is_fragment(skb, &frag); else err = tcf_ct_ipv6_is_fragment(skb, &frag); if (err || !frag) return err; tcf_ct_ipv4_is_fragment() returns -EINVAL or -ENOMEM; tcf_ct_ipv6_is_fragment() adds -EPROTO when ipv6_find_hdr() fails. None of them frees or queues the skb, so on that path the caller still owns it. tcf_ct_act() however funnels every non-zero return into the ownership-transfer exit: err = tcf_ct_handle_fragments(net, skb, family, p->zone, &defrag); if (err) goto out_frag; ... out_frag: if (err != -EINPROGRESS) tcf_action_inc_drop_qstats(&c->common); return TC_ACT_CONSUMED; TC_ACT_CONSUMED means the action took ownership of the skb, so no caller frees it - sch_handle_ingress(), sch_handle_egress() and tcf_qevent_handle() all deliberately skip the free for that verdict. The skb is therefore orphaned: one sk_buff plus its data buffer is leaked per malformed packet, unbounded. Note the drop counter is already incremented for these errors, so the statistics claim a drop that never happens. Three different ownership states reach out_frag: today - the skb may be queued by the defrag engine (-EINPROGRESS), already freed by nf_ct_handle_fragments(), or still owned by us. Tell the caller which of those it is, and free the packet ourselves in the last case, which restores the TC_ACT_SHOT behaviour that predated the Fixes: commit. Reproduced on v7.2-rc6 with a 54-byte frame carrying a 40-byte IPv6 header with nexthdr = 0 (hop-by-hop) and nothing after it, on a clsact ingress chain with "action ct". kmemleak reports one leaked 232-byte skbuff_head_cache object plus its 704-byte data buffer per packet; with this patch it reports none.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS