🇰🇷 한글 설명
Linux 커널의 netfilter 구성 요소에서 cttimeout의 데이터플레인 타임아웃 정책과 참조 횟수(refcount) 관리 방식이 개선되었습니다. 이 패치는 타임아웃 정책의 참조 횟수 관리 로직을 단순화하여 불필요한 참조를 제거하고 메모리 관리 효율성을 높였습니다.
💡 쉬운 설명
리눅스 운영체제의 네트워크 관리 기능에서 데이터가 처리되는 방식과 메모리를 사용하는 규칙을 더 깔끔하게 정리한 업데이트입니다. 이를 통해 시스템이 네트워크 연결 시간을 관리할 때 발생할 수 있는 복잡한 오류를 방지합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
netfilter: cttimeout: detach dataplane timeout policy and repurpose refcount
Add a refcount for struct nf_ct_timeout which is used by ct extension to
set the custom ct timeout policy, this tells us that the ct timeout is
being used by a conntrack entry. When the last conntrack entry drops the
refcount on the ct timeout, the ct timeout is released.
Remove the refcount for control plane which controls if the ruleset
refers to the timeout policy. After this update, it is possible to
remove the ct timeout policy from nfnetlink_cttimeout immediately.
This is for simplicity not to handle two refcounts on a single object.
Remove nf_queue_nf_hook_drop(): a packet sitting in nfqueue will just
hold a reference to the nf_ct_timeout object until packet is reinjected,
since this is part of the ct extension, this will be released by the
time the conntrack is freed.
nf_ct_untimeout() is still called to clean up in a best effort basis:
the ct timeout on existing entries gets removed when the ct timeout goes
away, but as long as the iptables ruleset still refers to the ct timeout
through a template, new conntracks may keep attaching it and extend its
lifetime until the rule is removed.
nf_ct_untimeout() is not called anymore from module removal path, this
is unlikely to find timeouts give module refcount is bumped, and the new
refcount already tracks the ct timeout policy use so it is released when
unused.
📍 영향받는 시스템
Linux Kernel (netfilter/cttimeout 관련 모듈 사용 버전)
⚔️ 공격 벡터
직접적인 공격 벡터는 명시되지 않았으나, 패치 전에는 잘못된 참조 횟수 관리로 인한 메모리 관련 취약점이 존재할 수 있음
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 최신 패치 버전인지 확인하십시오.