🇰🇷 한글 설명
Linux 커널의 netfilter nf_tables 구성 요소에서 만료된 catchall 요소가 삽입 및 삭제 과정에서 일관성 없이 처리되는 취약점이 발견되었습니다. 만료된 요소가 가비지 컬렉션(GC) 전까지 메모리에 남아 있어, 새로운 요소의 삽입을 방해하거나 잘못된 요소를 삭제하는 논리적 불일치 문제가 발생합니다.
💡 쉬운 설명
네트워크 규칙을 관리하는 시스템에서 유효기간이 지난 규칙이 제대로 사라지지 않아 새로운 규칙을 만들지 못하게 방해하는 문제입니다. 이로 인해 네트워크 보안 규칙이 의도한 대로 작동하지 않을 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_tables: skip expired catchall elements on insert and delete
nft_setelem_catchall_insert() looks up duplicates with
nft_set_elem_active() only, while nft_set_catchall_lookup() and the
dump path additionally skip expired elements.
Once a catchall element with a timeout expires, this predicate drift
makes it invisible to userspace dumps, yet it still blocks
re-insertion: with NLM_F_EXCL the request fails with -EEXIST, and
without it the request reports success but silently inserts nothing.
The stale entry only goes away when the (user-tunable) gc interval
elapses, so the catchall rule may silently stop matching for an
arbitrarily long time after its first expiration.
The delete path shows the same drift: nft_setelem_catchall_deactivate()
picks the first active-next entry in the catchall list, so with an
expired entry still pending GC it retires the stale entry instead of
the fresh one, and it deactivates an element that userspace no longer
sees instead of failing with -ENOENT.
Align both walks with the lookup and dump predicates: only an element
that is active and not expired counts as a duplicate or delete
candidate, using the per-netns timestamp taken at transaction start,
in line with the set backend .insert/.deactivate and catchall GC sync
paths.
📍 영향받는 시스템
Linux kernel (netfilter/nf_tables 구성 요소 포함 버전)
⚔️ 공격 벡터
로컬 시스템에서 네트워크 규칙(nf_tables)을 조작하여 서비스 거부(DoS) 또는 네트워크 필터링 우회 유도
🛡️ 대응 방법
해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 배포판의 보안 업데이트 버전인지 확인