🇰🇷 한글 설명
Linux 커널의 net/sched hhf 구성 요소에서 매우 큰 MTU를 가진 장치를 사용할 경우 정수 오버플로가 발생할 수 있는 취약점입니다. 이로 인해 hhf_dequeue() 함수에서 무한 루프가 발생하여 시스템이 멈출 수 있습니다. 해당 문제는 hhf_change() 호출 전 quantum 값을 적절히 제한함으로써 해결되었습니다.
💡 쉬운 설명
네트워크 설정 값이 너무 커서 컴퓨터가 계산을 잘못하게 만드는 버그입니다. 이 버그를 이용하면 컴퓨터가 계산을 무한히 반복하느라 멈춰버릴 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net/sched: hhf: clamp quantum before hhf_change() to avoid overflow
hhf_init() sets q->quantum = psched_mtu(qdisc_dev(sch)) with no overflow
check. A device with a huge MTU (e.g. dummy with max_mtu == 0 accepting
MTU 2147483634) makes weight * quantum overflow the signed deficit in
hhf_dequeue(), spinning forever.
Clamp q->quantum before hhf_change() so both the opt and !opt paths see
a sane quantum. Without this, bare "tc qdisc add ... hhf" succeeds with
a clamped quantum but "tc qdisc add ... hhf limit 1000" (any option
present) fails with -EINVAL because hhf_change() re-validates the
unclamped default (sch_hhf.c:559). 256 matches fq_codel's floor and is
a sane minimum for a DRR quantum.
Conditions to recreate the bug: a device whose MTU (plus
hard_header_len) wraps psched_mtu() into the sign bit (e.g. a dummy
device with max_mtu == 0 accepting MTU 2147483634). Requires
CAP_NET_ADMIN in a user namespace.
📍 영향받는 시스템
Linux kernel (MTU가 매우 큰 dummy 장치 등을 사용하는 환경)
⚔️ 공격 벡터
CAP_NET_ADMIN 권한을 가진 사용자가 매우 큰 MTU를 가진 네트워크 장치를 설정하여 오버플로 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인