🇰🇷 한글 설명
리눅스 커널의 ipconfig 구성 요소에서 DHCP 옵션(hostname, vendor-class 등)을 생성할 때 고정된 버퍼 크기를 초과하여 데이터를 쓰는 버퍼 오버플로 취약점이 발견되었습니다. 특정 조건에서 호스트 이름과 벤더 클래스 정보가 할당된 메모리 범위를 벗어나 기록됨으로써 시스템 패닉을 유발할 수 있습니다.
💡 쉬운 설명
네트워크 설정 정보를 담는 바구니의 크기가 정해져 있는데, 너무 큰 정보를 넣으려고 시도하여 바구니가 넘치는 문제입니다. 이로 인해 컴퓨터 시스템이 갑자기 멈추거나 재부팅될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: ipconfig: bound DHCP option construction
ic_dhcp_init_options() appends the hostname (option 12), vendor-class
(option 60) and client-ID (option 61) options into the fixed 312-byte
bootp_pkt.exten[] buffer. Only the client-ID branch checked the
remaining space; the hostname and vendor-class writes were unbounded.
A 64-byte hostname together with the maximum 252-byte dhcpclass=
identifier needs 18 + (2 + 64) + (2 + 252) = 338 of the 312 available
bytes even before the terminating END marker, so the vendor-class memcpy
runs past the end of exten[]. With CONFIG_FORTIFY_SOURCE this is
reported as a field-spanning write and, when the kernel is booted with
panic_on_warn=1, aborts boot with a panic.
Route the optional options through a common helper that makes sure the
option, its 2-byte header and the END marker all fit and drops an option
that would not. Configurations with short options keep sending exactly
the same bytes as before.
📍 영향받는 시스템
Linux kernel (net: ipconfig 관련 모듈 사용 시스템)
⚔️ 공격 벡터
조작된 DHCP 옵션(Hostname 또는 Vendor-class)을 포함한 네트워크 패킷을 전송하여 발생
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 DHCP 옵션 경계 검사 로직을 적용해야 함
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.