🇰🇷 한글 설명
Linux 커널의 netfilter 구성 요소 중 nf_conntrack_reasm에서 IPv6 파편화 재조립 시 MAC 헤더 오프셋을 잘못 조정하는 취약점이 발견되었습니다. IPv6 파편화 헤더를 제거하는 과정에서 MAC 헤더가 설정되지 않은 상태임에도 불구하고 오프셋을 강제로 증가시켜, 잘못된 메모리 위치를 참조하게 만듭니다.
💡 쉬운 설명
인터넷 데이터 조각을 다시 합치는 과정에서 데이터의 위치를 계산하는 방식에 오류가 있습니다. 이로 인해 시스템이 데이터의 시작점을 잘못 파악하여 메모리 오류나 보안 문제가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_conntrack_reasm: guard mac_header adjustment after IPv6 defrag
nf_ct_frag6_reasm() slides the packet head forward to drop the IPv6
fragment header and then unconditionally advances skb->mac_header:
skb->mac_header += sizeof(struct frag_hdr);
On the NF_INET_LOCAL_OUT defrag path the skb has no link-layer header
yet, so skb->mac_header is still the "not set" sentinel (u16)~0U. Adding
sizeof(struct frag_hdr) wraps it to a small value (0xffff + 8 == 7),
after which skb_mac_header_was_set() wrongly reports a MAC header is
present and skb_mac_header() points into the headroom.
The reassembler has done this unconditional add since it was introduced;
it was harmless while mac_header was a bare pointer, but wrong once
mac_header became a u16 offset whose unset state is the ~0U sentinel
tested by skb_mac_header_was_set(). The sibling net/ipv6/reassembly.c
does the same relocation and does guard the adjustment; mirror the
guard here.
📍 영향받는 시스템
IPv6 파편화 재조립 기능을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
조작된 IPv6 파편화 패킷을 전송하여 커널의 메모리 오프셋 계산 오류 유도
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 패치 버전 이후인지 확인