🇰🇷 한글 설명
Linux 커널의 netfilter nft_set_pipapo 구성 요소에서 Use-after-free 취약점이 발견되었습니다. 만료된 요소가 대량으로 발생할 경우 가비지 컬렉션(GC) 과정이 비선점 컨텍스트에서 너무 오래 실행되어 소프트 락업 및 RCU 스톨을 유발하며, 이는 로컬 서비스 거부(DoS)로 이어질 수 있습니다.
💡 쉬운 설명
리눅스 시스템의 네트워크 관리 기능에서 데이터 정리 작업이 너무 오래 걸려 시스템이 멈추는 현상이 발생할 수 있습니다. 이로 인해 컴퓨터가 응답하지 않거나 서비스가 중단될 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nft_set_pipapo: split gc into unlink and reclaim phase
Yiming Qian reports Use-after-free in the pipapo set type:
Under a large number of expired elements, commit-time GC can run for a very
long time in a non-preemptible context, triggering soft lockup warnings and
RCU stall reports (local denial of service).
We must split GC in an unlink and a reclaim phase.
We cannot queue elements for freeing until pointers have been swapped.
Expired elements are still exposed to both the packet path and userspace
dumpers via the live copy of the data structure.
call_rcu() does not protect us: dump operations or element lookups starting
after call_rcu has fired can still observe the free'd element, unless the
commit phase has made enough progress to swap the clone and live pointers
before any new reader has picked up the old version.
This a similar approach as done recently for the rbtree backend in commit
35f83a75529a ("netfilter: nft_set_rbtree: don't gc elements on insert").
📍 영향받는 시스템
Linux Kernel (netfilter nft_set_pipapo 구성 요소 포함 버전)
⚔️ 공격 벡터
로컬 권한을 가진 사용자가 대량의 만료된 요소를 생성하여 가비지 컬렉션 부하를 유도하는 방식
🛡️ 대응 방법
커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 GC 프로세스가 분리된 방식으로 동작하도록 수정해야 합니다.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인합니다.