Katalog CVE

CVE-2026-74560

Niskie ryzyko· EPSS 5%
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.16%

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

Streszczenie

W jądrze Linux wykryto podatność w AF_XDP, powodującą wyciek buforów podczas odrzucania pakietów multi-buffer w funkcji xsk_drop_skb(). W trzech scenariuszach (błąd przepełnienia, nieprawidłowy deskryptor w pierścieniu TX, zamknięcie gniazda) deskryptory TX są konsumowane, ale adresy buforów nie są publikowane w kolejce CQ, przez co przestrzeń użytkownika traci do nich dostęp. Poprawka polega na wywołaniu destruktora skb, który publikuje adresy do CQ, oraz na przeniesieniu przypisania adresu przed sprawdzenie przepełnienia.

Ocena ryzyka

Organizacja może doświadczyć wyczerpania pamięci lub zasobów buforowych w systemach używających AF_XDP (np. wysokowydajne przetwarzanie pakietów), co prowadzi do degradacji wydajności lub awarii usług sieciowych.

Rekomendacja

Zaleca się natychmiastowe zastosowanie oficjalnej łatki jądra Linux po jej udostępnieniu oraz monitorowanie biuletynów bezpieczeństwa dystrybucji. Należy również rozważyć ograniczenie użycia AF_XDP do zaufanych aplikacji do czasu aktualizacji.

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: xsk: fix buffer leak in xsk_drop_skb() for AF_XDP multi-buffer Tx This patch is inspired by the check[1] from sashiko. It says when overflow happens, the address of cq to be published is invalid. Actually the severer thing is the whole process of publishing the address of cq in this particular case is not right: it should truely publish the address and advance the cached_prod in cq as long as it reads descriptors from txq. The following is the full analysis. xsk_drop_skb() is called in three places, which all discard a partially built multi-buffer skb: 1) xsk_build_skb() -EOVERFLOW error path: packet exceeds MAX_SKB_FRAGS 2) __xsk_generic_xmit() post-loop cleanup: an invalid descriptor in the TX ring prevents the partial packet from completing 3) xsk_release(): socket close while xs->skb holds an incomplete packet In all three cases, the TX descriptors for the already-processed frags have been consumed from the TX ring (xskq_cons_release), and CQ slots have been reserved. However, xsk_drop_skb() calls xsk_consume_skb() which cancels the CQ reservations via xsk_cq_cancel_locked(). Since the buffer addresses never appear in the completion queue, userspace permanently loses track of these buffers. Fix this by letting consume_skb() trigger the existing xsk_destruct_skb destructor, which already submits buffer addresses to the CQ via xsk_cq_submit_addr_locked(). Note that cancelling the descriptors back to the TX ring (via xskq_cons_cancel_n) is not a appropriate option because an oversized packet that always exceeds MAX_SKB_FRAGS would be retried indefinitely, which is an obviously deadlock bug in the TX path. Also move the desc->addr assignment in xsk_build_skb() above the overflow check so that the current descriptor's address is recorded before a potential -EOVERFLOW jump to free_err, consistent with the zerocopy path in xsk_build_skb_zerocopy(). [1]: https://lore.kernel.org/all/[email protected]/

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