🇰🇷 한글 설명
Linux 커널의 netfilter nft_tunnel 구성 요소에서 객체 파괴 시 발생하는 Use-After-Free 취약점입니다. nft_tunnel_obj_destroy() 함수가 참조 카운트를 무시하고 메모리를 직접 해제하여, 대기 중인 패킷이 해제된 메모리에 접근할 때 문제가 발생합니다.
💡 쉬운 설명
컴퓨터가 사용 중인 메모리를 실수로 미리 지워버려서 발생하는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nft_tunnel: fix use-after-free on object destroy
nft_tunnel_obj_destroy() calls metadata_dst_free() which directly
kfree()s the metadata_dst, ignoring the dst_entry refcount. Packets
that took a reference via dst_hold() in nft_tunnel_obj_eval() and
are still queued (e.g. in a netem qdisc) are left with a dangling
pointer. When these packets are eventually dequeued, dst_release()
operates on freed memory.
Replace metadata_dst_free() with dst_release() so the metadata_dst
is freed only after all references are dropped. The dst subsystem
already handles metadata_dst cleanup in dst_destroy() when
DST_METADATA is set.
📍 영향받는 시스템
Linux kernel (netfilter/nft_tunnel 관련 모듈 사용 시스템)
⚔️ 공격 벡터
특수하게 조작된 네트워크 패킷을 전송하여 메모리 참조 오류 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인