Katalog CVE

CVE-2026-19673

WysokieCVSS 7.1
Opublikowano: Przetłumaczono: NVD NIST

Streszczenie

Podatność w funkcji ethernet_recv() w subsys/net/l2/ethernet/ethernet.c w stosie sieciowym Zephyr. Gdy ethertype to 0x8100, a na interfejsie włączony jest VLAN, bufor odbieranej ramki jest reinterpretowany jako 18-bajtowa struktura net_eth_vlan_hdr bez ponownego sprawdzenia długości, co powoduje odczyt poza buforem i podniesienie hdr_len do 18. Pojedyncza nieuwierzytelniona ramka o długości 14-17 bajtów z ethertype 0x8100 wyzwala błąd.

Ocena ryzyka

W buildzie produkcyjnym (bez asercji i CONFIG_NET_BUF_HARDENING) długość bufora uint16_t ulega niedomknięciu do 65534, a wskaźnik buf->data wychodzi poza koniec fragmentu, co prowadzi do niezawodnej zdalnej odmowy usługi oraz dostępu poza zakresem z możliwością wycieku informacji i korupcji danych. W buildzie z asercjami węzeł ulega panice.

Rekomendacja

Zaktualizować stos sieciowy Zephyr do wersji zawierającej poprawkę, która odrzuca ramkę przed odczytem tagu VLAN i waliduje hdr_len (14 lub 18) względem pkt->buffer->len. Do czasu wdrożenia poprawki rozważyć wyłączenie CONFIG_NET_VLAN na interfejsach odbierających lub ograniczenie przyjmowania ramek przez klasy USB CDC ECM i CDC NCM.

Inne podatności w Zephyr

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

ethernet_recv() in subsys/net/l2/ethernet/ethernet.c validates only that the first net_buf of a received frame holds a plain 14-byte struct net_eth_hdr. When the ethertype is 0x8100 and VLAN is enabled on the interface, the same buffer is reinterpreted as the 18-byte struct net_eth_vlan_hdr without re-checking the length: the VLAN TCI and the inner ethertype are read from offsets 14..17, past pkt->buffer->len, and hdr_len is raised to 18 so the subsequent net_buf_pull() removes more bytes than the buffer holds. A single unauthenticated frame of 14 to 17 bytes carrying the VLAN ethertype triggers this. No knowledge of the node's VLAN configuration is needed: net_eth_get_vlan_iface() returns the base interface for the priority tag 0, and a broadcast destination address satisfies the "frame is for me" test, so a 16-byte broadcast frame with ethertype 0x8100 and TCI 0x0000 reaches the pull. Nothing in the receive path enforces the 60-byte Ethernet minimum — the USB CDC ECM and CDC NCM gadget classes in particular hand host-supplied frames of any non-zero length straight to net_recv_data(). With assertions enabled, net_buf_simple_pull() asserts and the node panics. In a production build (assertions and CONFIG_NET_BUF_HARDENING off) the uint16_t buffer length underflows to 65534 and buf->data is advanced past the end of the fragment's storage, so every later parser reads far outside the buffer and any net_buf_add() on that fragment computes tailroom from the underflowed length. The result is a reliable remote denial of service and out-of-bounds access with information-disclosure and corruption potential. Only configurations built with CONFIG_NET_VLAN=y that have a VLAN enabled on the receiving Ethernet interface, and whose MAC does not strip VLAN tags in hardware (ETHERNET_HW_VLAN_TAG_STRIP), are affected. The fix rejects the frame before the tag is read, so hdr_len is thereafter either 14 or 18 with both sizes validated against pkt->buffer->len.

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