🇰🇷 한글 설명
Linux 커널의 netfilter conntrack 구성 요소에서 nf_ct_helper_hash 사용 후 해제(Use-After-Free) 취약점이 발견되었습니다. nf_conntrack 초기화 실패 시 해제된 메모리 포인터를 후속 모듈이 참조하여 메모리 오염을 유발할 수 있습니다.
💡 쉬운 설명
시스템의 네트워크 관리 기능이 제대로 준비되지 않은 상태에서 특정 기능이 실행될 때, 이미 삭제된 메모리 영역을 다시 사용하려고 시도하는 문제입니다. 이로 인해 시스템이 예기치 않게 종료되거나 데이터가 손상될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
netfilter: conntrack: Avoid nf_ct_helper_hash uses after free
If nf_conntrack_init_start() fails (for example due to a
register_nf_conntrack_bpf() failure), the nf_conntrack_helper_fini()
clean-up path frees the nf_ct_helper_hash map.
When built with NF_CONNTRACK=y, further netfilter modules (e.g:
netfilter_conntrack_ftp) can still be loaded and call
nf_conntrack_helpers_register(), independently of whether nf_conntrack
initialized correctly. This accesses the nf_ct_helper_hash dangling
pointer and causes a uaf, possibly leading to random memory corruption.
This patch guards nf_conntrack_helper_register() from accessing a freed
or uninitialized nf_ct_helper_hash pointer and fixes possible
uses-after-free when loading a conntrack module.
📍 영향받는 시스템
NF_CONNTRACK 옵션이 활성화된 Linux 커널 버전
⚔️ 공격 벡터
취약한 커널 환경에서 특정 netfilter 모듈(예: netfilter_conntrack_ftp)을 로드하여 메모리 오염 유도
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 보안 업데이트 버전인지 확인