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
위협 신호 · CVSS · EPSS · KEV
이론적 심각도 점수
예측 데이터 없음
실측 악용 기록 없음
계획된 패치 주기 내 조치(60일 이내)
CVSS 벡터 · 메트릭
CVSS 벡터 정보 없음
약점 (CWE)
- CWE-125
경계 밖 읽기 — 버퍼 범위를 벗어난 메모리를 읽어 민감 정보 유출·충돌 유발.
상세 설명
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:
1 2 3 4/* addons/dhcp/nxd_dhcp_client.c:7538, 7572 */ 5 6 7 8while (i < length - 1) 9 10 11 12{13 14 ...15 size = *(++data); /* data moves 1: type -> length byte */16 data += size + 1; /* data moves size + 1 more */17 i += size + 1; /* i moves only size + 1 */18 19 20}21 22 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:
1 2 3 4ERROR: AddressSanitizer: heap-buffer-overflow 5 6 7 8READ of size 1 at 0x61b000000794 thread T5 9 10 #0 _nx_dhcp_search_buffer addons/dhcp/nxd_dhcp_client.c:754111 #1 _nx_dhcp_get_option_value addons/dhcp/nxd_dhcp_client.c:708212 13 140x61b000000794 is located 164 bytes to the right of 1648-byte region15 16 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.
AI 심층 분석
공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.