CRITICAL🇬🇧 English

CVE-2024-35884

Linux Kernel: błędne GRO pakietów UDP w tunelach sieciowych — kernel crash

CVSS 9.8v3.1pub. 2024-05-19upd. 2026-08-04

Podatność w jądrze Linux dotyczy mechanizmu GRO (Generic Receive Offload) dla pakietów UDP, które mogą zostać nieprawidłowo zagregowane na poziomie UDP zamiast na poziomie tunelu. Skutkiem jest możliwość uszkodzenia pakietów lub wywołania crash'u jądra systemu (kernel panic).

Pokaż oryginał (EN)

In the Linux kernel, the following vulnerability has been resolved: udp: do not accept non-tunnel GSO skbs landing in a tunnel When rx-udp-gro-forwarding is enabled UDP packets might be GROed when being forwarded. If such packets might land in a tunnel this can cause various issues and udp_gro_receive makes sure this isn't the case by looking for a matching socket. This is performed in udp4/6_gro_lookup_skb but only in the current netns. This is an issue with tunneled packets when the endpoint is in another netns. In such cases the packets will be GROed at the UDP level, which leads to various issues later on. The same thing can happen with rx-gro-list. We saw this with geneve packets being GROed at the UDP level. In such case gso_size is set; later the packet goes through the geneve rx path, the geneve header is pulled, the offset are adjusted and frag_list skbs are not adjusted with regard to geneve. When those skbs hit skb_fragment, it will misbehave. Different outcomes are possible depending on what the GROed skbs look like; from corrupted packets to kernel crashes. One example is a BUG_ON[1] triggered in skb_segment while processing the frag_list. Because gso_size is wrong (geneve header was pulled) skb_segment thinks there is "geneve header size" of data in frag_list, although it's in fact the next packet. The BUG_ON itself has nothing to do with the issue. This is only one of the potential issues. Looking up for a matching socket in udp_gro_receive is fragile: the lookup could be extended to all netns (not speaking about performances) but nothing prevents those packets from being modified in between and we could still not find a matching socket. It's OK to keep the current logic there as it should cover most cases but we also need to make sure we handle tunnel packets being GROed too early. This is done by extending the checks in udp_unexpected_gso: GSO packets lacking the SKB_GSO_UDP_TUNNEL/_CSUM bits and landing in a tunnel must be segmented. [1] kernel BUG at net/core/skbuff.c:4408! RIP: 0010:skb_segment+0xd2a/0xf70 __udp_gso_segment+0xaa/0x560

🤖 Analiza AI
Jak działa

Gdy włączona jest opcja rx-udp-gro-forwarding lub rx-gro-list, przesyłane pakiety UDP mogą być agregowane przez mechanizm GRO. Funkcja udp4/6_gro_lookup_skb sprawdza dopasowanie gniazd wyłącznie w bieżącej przestrzeni nazw sieci (netns), co oznacza, że pakiety tunelowane z punktem końcowym w innej netns mogą zostać błędnie zagregowane na poziomie UDP. W przypadku tunelu geneve takie pakiety trafiają do ścieżki odbiorczej geneve z nieprawidłowo ustawionym polem gso_size — po odczytaniu nagłówka geneve i dostosowaniu przesunięć, bufory frag_list nie są korygowane względem geneve. Powoduje to wywołanie BUG_ON w funkcji skb_segment (net/core/skbuff.c), gdy skb_segment błędnie interpretuje dane frag_list, co prowadzi do uszkodzenia pamięci lub crash'u jądra.

Skutki

Zdalny, nieuwierzytelniony napastnik może doprowadzić do crash'u jądra systemu Linux (odmowa usługi) lub potencjalnie do uszkodzenia pamięci jądra, co w scenariuszu CVSS 9.8 może skutkować utratą poufności, integralności i dostępności systemu.

Mitygacja

Należy zastosować patche dostępne u producenta zgodnie z referencjami: commity 3001e7aa43d6, 3391b157780b, 35fe0e0b5c00, 3d010c8031e3, d12245080cb2 w repozytorium stable jądra Linux. Jako obejście można rozważyć wyłączenie opcji rx-udp-gro-forwarding i rx-gro-list na interfejsach obsługujących ruch tunelowany między różnymi przestrzeniami nazw sieci.

Kogo dotyczy

Jądro systemu Linux — wersje wskazane w referencjach producenta (patche dostępne pod adresami git.kernel.org wskazanymi w referencjach)

Uwagi

Podatność dotyczy konkretnie środowisk korzystających z tuneli sieciowych (np. geneve) w konfiguracji z wieloma przestrzeniami nazw sieci (netns) oraz włączonymi funkcjami rx-udp-gro-forwarding lub rx-gro-list. CWE-617 oznacza osiągalne asercje (reachable assertion) — BUG_ON w skb_segment jest bezpośrednio wymieniony w opisie jako jeden z możliwych objawów.

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Debian

    OS
    Debian
    10.0
  • Linux Kernel

    OS
    Linux
    6.95.16 – 6.1.85 (bez)5.6 – 5.10.215 (bez)6.7 – 6.8.5 (bez)6.2 – 6.6.26 (bez)5.11 – 5.15.154 (bez)
🔵
ZWERYFIKUJ U PRODUCENTA
Brak jednoznacznych danych o patchu. Sprawdź referencje od producenta.
CWE
Referencje

Powiązane podatności

CVE-2026-24061CRITICAL9.8⚠ KEVPL ✓ten sam produkt

GNU Inetutils telnetd: ominięcie uwierzytelnienia przez zmienną USER

CVE-2025-10585CRITICAL9.8⚠ KEVPL ✓ten sam produkt

Type confusion w V8 (Google Chrome) — zdalne uszkodzenie sterty

CVE-2025-32463CRITICAL9.3⚠ KEVPL ✓ten sam produkt

Sudo: eskalacja uprawnień do root poprzez opcję --chroot (CVE-2025-32463)

CVE-2025-49113CRITICAL9.9⚠ KEVPL ✓ten sam produkt

RCE przez deserializację PHP w Roundcube Webmail (parametr _from)

CVE-2025-34028CRITICAL9.3⚠ KEVPL ✓ten sam produkt

Commvault Command Center – nieuwierzytelniony RCE przez path traversal w ZIP