🇰🇷 한글 설명
리눅스 커널의 netfilter nf_tables 구성 요소에서 __nft_expr_type_get() 함수 호출 시 데이터 경합(Data-race)이 발생할 수 있는 취약점입니다. nft_unregister_expr()와 __nft_expr_type_get()이 동시에 실행될 때 nf_tables_expressions 리스트를 보호하는 메커니즘이 없어 리스트 항목에 대한 데이터 경합이 발생할 수 있습니다.
💡 쉬운 설명
리눅스 시스템의 네트워크 방화벽 기능을 처리하는 과정에서 여러 작업이 동시에 같은 데이터를 건드려 충돌이 발생할 수 있는 문제입니다. 이로 인해 시스템이 불안정해지거나 예상치 못한 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_tables: Fix potential data-race in __nft_expr_type_get()
nft_unregister_expr() can concurrent with __nft_expr_type_get(),
and there is not any protection when iterate over nf_tables_expressions
list in __nft_expr_type_get(). Therefore, there is potential data-race
of nf_tables_expressions list entry.
Use list_for_each_entry_rcu() to iterate over nf_tables_expressions
list in __nft_expr_type_get(), and use rcu_read_lock() in the caller
nft_expr_type_get() to protect the entire type query process.
📍 영향받는 시스템
nf_tables를 사용하는 리눅스 커널 버전
⚔️ 공격 벡터
로컬 공격자가 특정 네트워크 테이블 조작 명령을 통해 데이터 경합을 유도
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인