🇰🇷 한글 설명
리눅스 커널의 net/sched: fq 구성 요소에서 MTU 값이 매우 클 경우 정수 오버플로가 발생하여 quantum 값이 0이 되는 취약점입니다. 이로 인해 fq_dequeue() 함수 내에서 무한 루프가 발생하여 시스템이 소프트 락업(soft lockup) 상태에 빠질 수 있습니다.
💡 쉬운 설명
네트워크 설정값이 너무 커서 컴퓨터가 계산 오류를 일으키고, 이 오류 때문에 컴퓨터가 멈춰버리는 문제입니다. 공격자가 특수한 네트워크 설정을 만들면 시스템을 마비시킬 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net/sched: fq: add overflow bounds to quantum and initial quantum
fq_init() computes quantum = 2 * psched_mtu() and initial_quantum = 10 *
psched_mtu() with no overflow check. A device with a huge MTU (e.g. dummy
with max_mtu == 0 accepting MTU 2147483634) makes psched_mtu() return
0x80000000; the 2 * and 10 * multiplications wrap to 0 in 32-bit
arithmetic, so q->quantum == 0. Then in fq_dequeue() the credit-refill
loop adds 0 to f->credit (which stays <= 0) and goto begin loops
forever under the qdisc lock, creating a soft lockup.
Clamp psched_mtu() to [1, 1 << 20] before multiplying so the product
cannot wrap, then cap the result at 1 << 20, matching the bound already
enforced on TCA_FQ_QUANTUM in fq_change().
Conditions to recreate the bug: a device whose MTU (plus
hard_header_len) is large enough that 2 * psched_mtu() wraps (e.g. a
dummy device with max_mtu == 0 accepting MTU 2147483634). Requires
CAP_NET_ADMIN in a user namespace.
📍 영향받는 시스템
Linux Kernel (fq scheduler 사용 시, 특정 MTU 설정이 가능한 환경)
⚔️ 공격 벡터
CAP_NET_ADMIN 권한을 가진 사용자가 매우 큰 MTU 값을 가진 네트워크 장치를 생성하여 정수 오버플로 유도
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 psched_mtu() 값에 대한 경계 검사 및 클램핑 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 이후의 버전인지 확인하십시오.