🔍 CVE-2026-68138

7.8
CVSS Score
HIGH
2026-08-10
2026-10-19 21:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 net/sched 구성 요소에서 qdisc_rtab_list와 비원자적 참조 카운트(refcnt)에 대한 동기화 부재로 인해 발생하는 취약점입니다. 특정 조건에서 RTNL 뮤텍스 없이 qdisc_get_rtab() 및 qdisc_put_rtab()이 호출될 경우, 경합 조건(Race Condition)이 발생하여 qdisc_rate_table 구조체에 대한 Use-After-Free 또는 Double-Free 오류가 발생할 수 있습니다.

💡 쉬운 설명

리눅스 운영체제의 네트워크 관리 기능에서 여러 작업이 동시에 같은 데이터를 수정하려고 할 때 충돌이 발생하는 문제입니다. 이 충돌로 인해 시스템 메모리가 잘못 관리되어 컴퓨터가 멈추거나 보안 공격에 노출될 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: net/sched: serialize qdisc_rtab_list against concurrent get/put qdisc_get_rtab() and qdisc_put_rtab() mutate the process-global singly linked list qdisc_rtab_list and a plain non-atomic 'int refcnt' with no lock. This was only safe because every caller historically held the RTNL mutex, which serialized all rate-table lookups, inserts and frees. That invariant no longer holds. cls_flower sets TCF_PROTO_OPS_DOIT_UNLOCKED, so tc_new_tfilter() keeps rtnl_held == false for it and sets TCA_ACT_FLAGS_NO_RTNL. That flag propagates through tcf_exts_validate_ex() -> tcf_action_init() -> tcf_action_init_1() -> tcf_police_init(), which calls qdisc_get_rtab()/qdisc_put_rtab() with the RTNL mutex NOT held. Two RTM_NEWTFILTER requests on different CPUs, each adding a flower filter with a police action carrying the same rate, then race on qdisc_rtab_list and on the non-atomic refcnt, leading to a use-after-free / double-free of the kmalloc-2k struct qdisc_rate_table. qdisc_rtab_list is a single global (not per-netns), so the corrupted object is shared system-wide. BUG: KASAN: slab-use-after-free in qdisc_put_rtab+0x12f/0x160 qdisc_put_rtab+0x12f/0x160 tcf_police_init+0xda9/0x1590 tcf_action_init_1+0x460/0x6b0 tcf_action_init+0x439/0xa40 tcf_exts_validate_ex+0x42d/0x550 fl_change+0xddd/0x7da0 tc_new_tfilter+0xaa7/0x2420 rtnetlink_rcv_msg+0x95e/0xe90 which belongs to the cache kmalloc-2k of size 2048 Protect qdisc_rtab_list and the refcount with a dedicated spinlock. The (sleeping, GFP_KERNEL) allocation in qdisc_get_rtab() is performed before taking the lock; if a concurrent inserter added an identical table in the meantime the freshly allocated one is freed under the lock, so no duplicate is leaked. qdisc_put_rtab() now decrements the refcount and unlinks under the same lock.

📍 영향받는 시스템

Linux Kernel (qdisc_rtab_list 및 cls_flower 관련 기능이 포함된 버전)

⚔️ 공격 벡터

서로 다른 CPU에서 동일한 속도 제한(police action)을 가진 flower 필터를 동시에 생성하는 RTM_NEWTFILTER 요청을 보냄으로써 경합 조건 유도

🛡️ 대응 방법

qdisc_rtab_list와 참조 카운트를 보호하기 위해 전용 스핀락(spinlock)을 사용하는 최신 커널 패치 적용

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 해결된 패치 버전인지 배포판 보안 공지를 통해 확인하십시오.

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

💻 영향받는 소프트웨어

NVIDIA vGPU Guest Driver for Linux