🇰🇷 한글 설명
리눅스 커널의 tunnels 구성 요소에서 skb_cow() 호출 전 네트워크 헤더를 캐싱하여 발생하는 Use-After-Free(UAF) 취약점입니다. skb_cow()가 실행될 때 skb->head가 재할당될 수 있어, 기존에 저장된 헤더 포인터를 참조할 경우 메모리 오류가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터의 메모리 주소를 미리 저장해 두었는데, 중간에 메모리 위치가 바뀌면서 옛날 주소를 가리키게 되어 발생하는 오류입니다. 이로 인해 시스템이 충돌하거나 해커가 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
tunnels: load network headers after skb_cow() in iptunnel_pmtud_build_icmp[v6]()
Sashiko found that iptunnel_pmtud_build_icmp() and
iptunnel_pmtud_build_icmpv6() were caching ip_hdr() and ipv6_hdr()
before an skb_cow() call which can reallocate skb->head.
Fix this possible UAF by initializing the local variables
after the skb_cow() call.
Remove skb_reset_network_header() calls which were not needed.
📍 영향받는 시스템
skb_cow() 호출 시 헤더 재할당이 발생하는 리눅스 커널 버전
⚔️ 공격 벡터
네트워크 패킷 처리 과정에서 특정 조건의 ICMP 메시지를 유도하여 메모리 오류 유발
🛡️ 대응 방법
iptunnel_pmtud_build_icmp 관련 패치가 적용된 최신 리눅스 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 최신 보안 패치 버전인지 확인