🇰🇷 한글 설명
Linux 커널의 net/sched: hhf 구성 요소에서 quantum 값을 사용자 공간으로부터 임의로 설정할 수 있는 취약점이 발견되었습니다. 공격자가 quantum 값을 1로 설정할 경우, deficit-refill 루프가 과도하게 반복되어 qdisc 락 하에서 시스템 소프트 락업(soft lockup) 및 서비스 거부(DoS) 상태를 유발할 수 있습니다.
💡 쉬운 설명
네트워크 설정 값을 조작하여 컴퓨터의 핵심 엔진을 무한 루프에 빠뜨리는 공격입니다. 이로 인해 시스템이 멈추거나 응답하지 않는 상태가 될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net/sched: hhf: clamp quantum in change and init paths
hhf_change() accepts any quantum from userspace, including 1. With a
crafted size table qdisc_pkt_len reaches ~2 GiB, so quantum=1 makes
the deficit-refill loop spin ~2^31 times under the qdisc lock
(a soft lockup / denial of service).
Add max(256U, ...) in hhf_change() matching fq_codel_change(). Clamp
hhf_init() to [256, 1<<20] matching the siblings, and remove the old
fallback that only set quantum=256 on overflow.
Conditions to recreate the bug:
CONFIG_NET_SCH_HHF=y. Requires CAP_NET_ADMIN (namespace-local via
unshare -Urn suffices).
tc qdisc add dev dummy0 root hhf
tc qdisc change dev dummy0 root hhf quantum 1 stab data 32768 size_log 15 cell_log 0
📍 영향받는 시스템
CONFIG_NET_SCH_HHF가 활성화된 Linux 커널
⚔️ 공격 벡터
CAP_NET_ADMIN 권한을 가진 사용자가 tc 명령어를 통해 quantum 값을 1로 설정하여 공격
🛡️ 대응 방법
커널 패치를 적용하여 hhf_change() 및 hhf_init() 함수에서 quantum 값을 최소 256 이상으로 제한(clamping)해야 함
🔧 검증 코드
결과값에 CONFIG_NET_SCH_HHF=y가 포함되어 있다면 해당 취약점에 노출될 가능성이 있는 상태입니다.
zgrep CONFIG_NET_SCH_HHF /proc/config.gz 2>/dev/null || grep CONFIG_NET_SCH_HHF /boot/config-$(uname -r)