Katalog CVE

CVE-2026-102720

ŚrednieCVSS 5.3
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Streszczenie

W kliencie DHCP (addons/dhcp/nxd_dhcp_client.c) podczas przeglądania opcji TLV licznik przesunięcia 'i' jest zwiększany o size+1, podczas gdy wskaźnik 'data' przesuwa się o size+2. Powoduje to, że po pominęciu odpowiedniej liczby opcji sprawdzanie granicy 'i < length - 1' nadal przechodzi, mimo że wskaźnik danych wykroczył poza koniec odebranej wiadomości. W efekcie klient DHCP odczytuje około kilobajta poza buforem (heap-buffer-overflow), co może być wywołane przez złośliwy serwer DHCP lub dowolnego uczestnika sieci LAN odpowiadającego na DISCOVER.

Ocena ryzyka

Podatność występuje przy każdym rozruchu klienta DHCP znajdującego się w zasięgu wrogiego respondera DHCP, jeszcze przed konfiguracją interfejsu. Odczytane poza buforem dane są wykorzystywane do konfiguracji interfejsu, co może prowadzić do ujawnienia informacji z pamięci oraz potencjalnego wpływu na konfigurację sieciową urządzenia.

Rekomendacja

Zaktualizuj komponent do wersji zawierającej poprawkę, która zwiększa 'i' o size+2 lub wyznacza granicę na podstawie wskaźnika 'data' zamiast drugiego licznika. Do czasu wdrożenia poprawki rozważ ograniczenie zaufania do serwerów DHCP w sieci LAN (np. DHCP snooping, kontrolowany serwer DHCP).

Powiązane podatności

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

A DHCP server, or anyone on the LAN who answers a DISCOVER first, can make the client read about a kilobyte past the end of the received message. The option walk keeps a pointer and an offset in step, and the only bound check uses the offset: ```c /* addons/dhcp/nxd_dhcp_client.c:7538, 7572 */ while (i < length - 1) { ... size = *(++data); /* data moves 1: type -> length byte */ data += size + 1; /* data moves size + 1 more */ i += size + 1; /* i moves only size + 1 */ } ``` A TLV option occupies size + 2 bytes. `data` is advanced by size + 2 in total, `i` by size + 1, so the offset falls one byte behind the real read position for every option the walk skips. After enough skipped options the check `i < length - 1` still holds while `data` is already past the end of the message, and the subsequent read of the type and length bytes comes from whatever follows. A single OFFER carrying a long run of skippable options is enough: ``` ERROR: AddressSanitizer: heap-buffer-overflow READ of size 1 at 0x61b000000794 thread T5 #0 _nx_dhcp_search_buffer addons/dhcp/nxd_dhcp_client.c:7541 #1 _nx_dhcp_get_option_value addons/dhcp/nxd_dhcp_client.c:7082 0x61b000000794 is located 164 bytes to the right of 1648-byte region ``` A well formed OFFER through the same path is handled normally, the client records the offer and moves to REQUESTING, so the difference is the option layout rather than the harness. The read runs in the DHCP client thread while the client is still unconfigured, so it happens on every boot in reach of a hostile DHCP responder. The values read are used to configure the interface, which is how the disclosed bytes become observable. Advance `i` by size + 2, or derive the bound from `data` rather than keeping a second counter.

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