🔍 CVE-2024-56655

7.8
CVSS Score
HIGH
2024-12-27
2026-08-04 11:22
✅ 완료

🇰🇷 한글 설명

Linux 커널의 netfilter nf_tables 구성 요소에서 규칙 파괴 시 call_rcu를 통해 처리를 지연시키는 과정에서 발생하는 취약점입니다. nf_tables_chain_destroy 함수가 수면(sleep)이 가능한 상태에서 call_rcu 콜백 내에서 호출될 수 있어 동기화 문제가 발생할 수 있습니다.

💡 쉬운 설명

리눅스 네트워크 관리 도구에서 규칙을 삭제할 때, 시스템이 데이터를 처리하는 방식에 오류가 있어 충돌이 발생할 수 있는 문제입니다. 이로 인해 시스템이 불안정해지거나 예기치 않은 동작을 할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: do not defer rule destruction via call_rcu nf_tables_chain_destroy can sleep, it can't be used from call_rcu callbacks. Moreover, nf_tables_rule_release() is only safe for error unwinding, while transaction mutex is held and the to-be-desroyed rule was not exposed to either dataplane or dumps, as it deactives+frees without the required synchronize_rcu() in-between. nft_rule_expr_deactivate() callbacks will change ->use counters of other chains/sets, see e.g. nft_lookup .deactivate callback, these must be serialized via transaction mutex. Also add a few lockdep asserts to make this more explicit. Calling synchronize_rcu() isn't ideal, but fixing this without is hard and way more intrusive. As-is, we can get: WARNING: .. net/netfilter/nf_tables_api.c:5515 nft_set_destroy+0x.. Workqueue: events nf_tables_trans_destroy_work RIP: 0010:nft_set_destroy+0x3fe/0x5c0 Call Trace: <TASK> nf_tables_trans_destroy_work+0x6b7/0xad0 process_one_work+0x64a/0xce0 worker_thread+0x613/0x10d0 In case the synchronize_rcu becomes an issue, we can explore alternatives. One way would be to allocate nft_trans_rule objects + one nft_trans_chain object, deactivate the rules + the chain and then defer the freeing to the nft destroy workqueue. We'd still need to keep the synchronize_rcu path as a fallback to handle -ENOMEM corner cases though.

📍 영향받는 시스템

Linux Kernel (netfilter/nf_tables 구성 요소 포함 버전)

⚔️ 공격 벡터

로컬 권한을 가진 공격자가 nf_tables API를 통해 특정 체인 및 규칙 삭제 작업을 수행하여 커널 경고 또는 불안정 유도

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.

🔧 검증 코드

출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인하십시오.

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Linux Kernel