🇰🇷 한글 설명
Linux 커널의 netfilter nfnetlink_queue 구성 요소에서 GSO(Generic Segmentation Offload) 패킷 처리 시 검증 순서 오류로 인해 발생하는 취약점입니다. 특정 조건에서 unconfirmed nf_conn 엔트리를 가진 GSO 패킷이 수신될 경우, 패킷이 큐에 쌓이지 않고 모두 드롭되는 현상이 발생합니다.
💡 쉬운 설명
네트워크 패킷을 효율적으로 처리하는 과정에서 검사 순서가 잘못되어, 정상적인 데이터 패킷이 차단되어 사라지는 문제입니다. 이로 인해 특정 상황에서 네트워크 연결이 끊기거나 통신이 불가능해질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nfnetlink_queue: do shared-unconfirmed check before segmentation
Ulrich reports a regression with nfqueue:
If an application did not set the 'F_GSO' capability flag and a gso
packet with an unconfirmed nf_conn entry is received all packets are
now dropped instead of queued, because the check happens after
skb_gso_segment(). In that case, we did have exclusive ownership
of the skb and its associated conntrack entry. The elevated use
count is due to skb_clone happening via skb_gso_segment().
Move the check so that its peformed vs. the aggregated packet.
Then, annotate the individual segments except the first one so we
can do a 2nd check at reinject time.
For the normal case, where userspace does in-order reinjects, this avoids
packet drops: first reinjected segment continues traversal and confirms
entry, remaining segments observe the confirmed entry.
While at it, simplify nf_ct_drop_unconfirmed(): We only care about
unconfirmed entries with a refcnt > 1, there is no need to special-case
dying entries.
This only happens with UDP. With TCP, the only unconfirmed packet will
be the TCP SYN, those aren't aggregated by GRO.
Next patch adds a udpgro test case to cover this scenario.
📍 영향받는 시스템
Linux Kernel (netfilter/nfnetlink_queue 관련 모듈 사용 시스템)
⚔️ 공격 벡터
UDP 프로토콜을 사용하며 F_GSO 플래그가 설정되지 않은 애플리케이션 환경에서 특정 GSO 패킷을 전송하여 서비스 거부(DoS) 유도
🛡️ 대응 방법
해당 취약점이 해결된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 보안 업데이트 버전인지 배포판 보안 공지를 통해 확인