🇰🇷 한글 설명
Linux 커널의 xfrm 모듈 내 nat_keepalive 함수에서 전송 오류 발생 시 skb(소켓 버퍼)를 중복 해제하는 취약점이 발견되었습니다. 패킷 전송 과정에서 소유권이 네트워크 스택으로 넘어간 후 오류가 발생하면 이미 해제된 메모리를 다시 해제하게 되어 시스템 불안정성을 초래할 수 있습니다.
💡 쉬운 설명
네트워크 패킷을 보내는 과정에서 이미 처리된 데이터를 컴퓨터가 실수로 두 번 삭제하려고 시도하는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 보안 문제가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
xfrm: nat_keepalive: avoid double free on send error
nat_keepalive_send() frees the keepalive skb whenever the IPv4 or IPv6
send helper reports an error.
That cleanup is only correct before the skb is handed to the output
path. Once ip_build_and_send_pkt() or ip6_xmit() takes ownership, the
networking stack may already have consumed the skb before returning an
error, so freeing it again is unsafe.
Handle the pre-handoff failure cases inside nat_keepalive_send_ipv4()
and nat_keepalive_send_ipv6(), where the caller still owns the skb, and
keep nat_keepalive_send() responsible only for family dispatch and the
unsupported-family cleanup path.
📍 영향받는 시스템
Linux Kernel (xfrm 모듈 사용 시스템)
⚔️ 공격 벡터
네트워크 전송 오류를 유도하여 커널 메모리 오염 및 Double Free 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인