🇰🇷 한글 설명
Linux 커널의 netfilter NAT 구성 요소에서 nf_hook_ops 구조체를 해제할 때 kfree_rcu를 사용하지 않아 발생하는 취약점입니다. 사용자 공간에서 활성 netfilter 훅을 덤프할 때 NAT 훅 구조체가 적절히 지연 해제되지 않아 메모리 관리 문제가 발생할 수 있습니다.
💡 쉬운 설명
리눅스 운영체제의 네트워크 관리 기능에서 메모리를 정리하는 방식에 오류가 있는 상태입니다. 이로 인해 시스템의 네트워크 정보를 조회할 때 메모리 충돌이나 불안정성이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nat: use kfree_rcu to release ops
Florian Westphal says:
"Historically this is not an issue, even for normal base hooks: the data
path doesn't use the original nf_hook_ops that are used to register the
callbacks.
However, in v5.14 I added the ability to dump the active netfilter
hooks from userspace.
This code will peek back into the nf_hook_ops that are available
at the tail of the pointer-array blob used by the datapath.
The nat hooks are special, because they are called indirectly from
the central nat dispatcher hook. They are currently invisible to
the nfnl hook dump subsystem though.
But once that changes the nat ops structures have to be deferred too."
Update nf_nat_register_fn() to deal with partial exposition of the hooks
from error path which can be also an issue for nfnetlink_hook.
📍 영향받는 시스템
Linux kernel (v5.14 이상 버전에서 훅 덤프 기능이 포함된 버전)
⚔️ 공격 벡터
로컬 공격자가 사용자 공간에서 netfilter 훅 정보를 조회하거나 조작하여 메모리 오류를 유도할 수 있음
🛡️ 대응 방법
nf_nat_register_fn() 함수가 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인합니다.