🇰🇷 한글 설명
Linux 커널의 IPVS 구성 요소에서 ICMP 오류 재배치 시 IPv4 옵션 데이터가 제대로 초기화되지 않는 취약점이 발견되었습니다. 이로 인해 잘못된 오프셋이 참조되어 스택 영역에 경계를 벗어난 쓰기(Stack Out-of-Bounds Write)가 발생할 수 있습니다.
💡 쉬운 설명
네트워크 패킷을 처리하는 과정에서 데이터의 위치를 잘못 계산하여, 시스템의 중요한 메모리 영역을 침범할 수 있는 오류입니다. 공격자가 이를 악용하면 시스템을 중단시키거나 제어권을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ipvs: clear IPv4 options after rebasing tunnel ICMP errors
ip_vs_in_icmp() rebases an skb from the outer ICMP packet to the
quoted original request before passing it to icmp_send(). However,
IPCB(skb)->opt still describes the outer IPv4 header.
A timestamp option in the outer header can therefore leave an offset
that points into the quoted transport header after the rebase.
__ip_options_echo() treats a byte at that stale location as the option
length and copies it into the fixed-size option storage on the
__icmp_send() stack, causing a stack out-of-bounds write.
Clear the stale option metadata after resetting the network header.
Keep the remaining control block fields, including the ingress
interface used by the ICMP response path.
📍 영향받는 시스템
Linux Kernel (IPVS 모듈을 사용하는 버전)
⚔️ 공격 벡터
조작된 IPv4 옵션(Timestamp 등)이 포함된 ICMP 패킷을 전송하여 스택 오버플로우 유도
🛡️ 대응 방법
IPVS의 ip_vs_in_icmp() 함수 내에서 네트워크 헤더 재설정 시 stale option metadata를 초기화하는 최신 커널 패치 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 최신 보안 패치 버전인지 확인