🔍 CVE-2024-42109

7.8
CVSS Score
HIGH
2024-07-30
2026-08-04 11:19
✅ 완료

🇰🇷 한글 설명

Linux 커널의 netfilter nf_tables 구성 요소에서 발생하는 Use-After-Free(UAF) 취약점입니다. 테이블 삭제 시 대기 중인 작업(pending work)을 조건부로만 비우기 때문에, 삭제된 테이블을 참조하는 작업이 남아 있어 메모리 오류를 유발할 수 있습니다.

💡 쉬운 설명

컴퓨터가 데이터를 삭제할 때, 아직 그 데이터를 사용 중인 작업이 남아있음에도 불구하고 강제로 삭제를 진행하여 발생하는 오류입니다. 이로 인해 시스템이 불안정해지거나 해커가 시스템 권한을 탈취할 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: unconditionally flush pending work before notifier syzbot reports: KASAN: slab-uaf in nft_ctx_update include/net/netfilter/nf_tables.h:1831 KASAN: slab-uaf in nft_commit_release net/netfilter/nf_tables_api.c:9530 KASAN: slab-uaf int nf_tables_trans_destroy_work+0x152b/0x1750 net/netfilter/nf_tables_api.c:9597 Read of size 2 at addr ffff88802b0051c4 by task kworker/1:1/45 [..] Workqueue: events nf_tables_trans_destroy_work Call Trace: nft_ctx_update include/net/netfilter/nf_tables.h:1831 [inline] nft_commit_release net/netfilter/nf_tables_api.c:9530 [inline] nf_tables_trans_destroy_work+0x152b/0x1750 net/netfilter/nf_tables_api.c:9597 Problem is that the notifier does a conditional flush, but its possible that the table-to-be-removed is still referenced by transactions being processed by the worker, so we need to flush unconditionally. We could make the flush_work depend on whether we found a table to delete in nf-next to avoid the flush for most cases. AFAICS this problem is only exposed in nf-next, with commit e169285f8c56 ("netfilter: nf_tables: do not store nft_ctx in transaction objects"), with this commit applied there is an unconditional fetch of table->family which is whats triggering the above splat.

📍 영향받는 시스템

Linux kernel (특히 nf-next 브랜치 및 특정 커밋이 적용된 환경)

⚔️ 공격 벡터

로컬 공격자가 특수하게 조작된 netfilter 트랜잭션을 생성하여 메모리 오류를 유발하는 방식

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 nf_tables의 작업 비우기(flush) 로직을 수정해야 합니다.

🔧 검증 코드

출력된 커널 버전이 취약점이 해결된 최신 패치 버전인지 확인합니다.

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