🇰🇷 한글 설명
Linux 커널의 netfilter 모듈에서 연결 추적 기대값(conntrack expectation) 처리 시 master conntrack의 참조를 안전하게 관리하지 않아 발생하는 메모리 안전 문제입니다. ctnetlink와 /proc 경로에서 helper 정보를 출력할 때 참조 카운팅 없이 접근하여 use-after-free 또는 null pointer dereference가 발생할 수 있습니다.
💡 쉬운 설명
Linux 커널의 네트워크 필터링 기능에서 연결 정보 관리 중 메모리를 안전하게 접근하지 않는 버그입니다. 공격자가 특정 네트워크 패킷을 조작하여 커널 충돌, DoS 또는 권한 상승을 유발할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_conntrack_expect: use expect->helper
Use expect->helper in ctnetlink and /proc to dump the helper name.
Using nfct_help() without holding a reference to the master conntrack
is unsafe.
Use exp->master->helper in ctnetlink path if userspace does not provide
an explicit helper when creating an expectation to retain the existing
behaviour. The ctnetlink expectation path holds the reference on the
master conntrack and nf_conntrack_expect lock and the nfnetlink glue
path refers to the master ct that is attached to the skb.
📍 영향받는 시스템
netfilter 모듈이 포함된 모든 Linux 커널 버전 (정확한 패치 적용 전 버전)
⚔️ 공격 벡터
네트워크 인터페이스를 통한 조작된 패킷 전송으로 커널 메모리 접근 또는 로컬 권한 상승
🛡️ 대응 방법
Linux 커널을 최신 LTS 버전 이상으로 업데이트하거나 해당 netfilter 보안 패치 적용
🔧 검증 코드
커널 버전 확인 후 보안 업데이트 공지에 나열된 최소 패치 버전 이상 설치 확인, 또는 /proc에서 conntrack 기능이 정상 작동하는지 확인
uname -r && grep -i conntrack /proc/net/nf_conntrack_expect 2>/dev/null | head -1