🇰🇷 한글 설명
Linux 커널의 netfilter ctnetlink 구성 요소에서 NAT 필드가 없는 경우 관련 필드가 초기화되지 않는 취약점이 발견되었습니다. 이로 인해 이전 메모리 할당에서 남은 데이터(Stale data)가 사용자 공간으로 유출될 수 있습니다.
💡 쉬운 설명
컴퓨터 메모리에서 이전에 사용했던 정보가 깨끗하게 지워지지 않아, 다른 프로그램이 이 정보를 훔쳐볼 수 있는 문제입니다. 공격자는 이를 통해 네트워크 설정과 관련된 민감한 정보를 알아낼 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
netfilter: ctnetlink: zero expect NAT fields when CTA_EXPECT_NAT absent
ctnetlink_alloc_expect() allocates expectations from a non-zeroing
slab cache via nf_ct_expect_alloc(). When CTA_EXPECT_NAT is not
present in the netlink message, saved_addr and saved_proto are
never initialized. Stale data from a previous slab occupant can
then be dumped to userspace by ctnetlink_exp_dump_expect(), which
checks these fields to decide whether to emit CTA_EXPECT_NAT.
The safe sibling nf_ct_expect_init(), used by the packet path,
explicitly zeroes these fields.
Zero saved_addr, saved_proto and dir in the else branch, guarded
by IS_ENABLED(CONFIG_NF_NAT) since these fields only exist when
NAT is enabled.
Confirmed by priming the expect slab with NAT-bearing expectations,
freeing them, creating a new expectation without CTA_EXPECT_NAT,
and observing that the ctnetlink dump emits a spurious
CTA_EXPECT_NAT containing stale data from the prior allocation.
📍 영향받는 시스템
Linux kernel (netfilter/ctnetlink 모듈 사용 시스템)
⚔️ 공격 벡터
메모리 할당 시 초기화되지 않은 필드를 통해 사용자 공간으로 이전 데이터 유출 (Information Disclosure)
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이상인지 확인하십시오.