🇰🇷 한글 설명
리눅스 커널의 skb_gro_receive_list() 함수에서 데이터가 선형 영역에 있는지 확인하지 않고 skb_pull()을 호출하여 발생하는 취약점입니다. 이로 인해 skb->len이 skb->data_len보다 작아지는 상황이 발생하여 커널의 BUG_ON() 조건에 걸리게 됩니다.
💡 쉬운 설명
네트워크 데이터를 처리하는 과정에서 데이터의 위치를 제대로 확인하지 않아 시스템이 오류를 일으키는 문제입니다. 이 오류가 발생하면 리눅스 시스템이 예기치 않게 멈추거나 충돌할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: add pskb_may_pull() to skb_gro_receive_list()
skb_gro_receive_list() calls skb_pull(skb, skb_gro_offset(skb)) without
first ensuring the data is in the linear area via pskb_may_pull(). When
the skb arrives via napi_gro_frags(), skb_headlen can be 0 (all data in
page fragments) while skb_gro_offset is non-zero (after IP+TCP header
parsing). The skb_pull() then decrements skb->len by skb_gro_offset
but skb->data_len stays unchanged, hitting BUG_ON(skb->len < skb->data_len)
in __skb_pull().
The UDP fraglist GRO path already contains this guard at
udp_offload.c:749. Adding it to skb_gro_receive_list() itself provides
centralized protection for all callers (TCP, UDP, and any future
protocols), and ensures the precondition of skb_pull() is satisfied
before it is called.
On pskb_may_pull() failure, set NAPI_GRO_CB(skb)->flush = 1 so the
skb is not held as a new GRO head and is instead delivered through the
normal receive path, matching the UDP handling.
📍 영향받는 시스템
Linux Kernel (skb_gro_receive_list() 함수를 사용하는 버전)
⚔️ 공격 벡터
특수하게 조작된 네트워크 패킷(NAPI GRO 프래그먼트 포함)을 전송하여 커널 오류 유도
🛡️ 대응 방법
pskb_may_pull() 검사 로직이 포함된 최신 리눅스 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인