🇰🇷 한글 설명
Linux 커널의 net/sched: sch_hfsc 구성 요소에서 클래스가 중복으로 비활성화(passive) 상태로 전환되는 취약점이 발견되었습니다. 이로 인해 부모 클래스의 활성 자식 수가 잘못 계산되어 정상적인 자식이 있음에도 불구하고 qdisc가 정지되는 현상이 발생할 수 있습니다.
💡 쉬운 설명
네트워크 데이터를 처리하는 과정에서 시스템이 데이터가 없다고 착각하여 통신 통로를 잘못 닫아버리는 문제입니다. 이로 인해 인터넷 연결이 끊기거나 네트워크 속도가 멈추는 현상이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net/sched: sch_hfsc: Don't make class passive twice
update_vf() is called from two places for the same class during a single
dequeue when the class's child qdisc (e.g. codel/fq_codel) drops its last
packets while dequeuing:
1. The child calls qdisc_tree_reduce_backlog(), which, now that the child
is empty, invokes hfsc_qlen_notify() -> update_vf(cl, 0, 0) and turns
the class passive (cl_nactive is decremented up the hierarchy).
2. hfsc_dequeue() then calls update_vf(cl, qdisc_pkt_len(skb), cur_time)
to charge the dequeued bytes.
On the second call the class is already passive, but its child qdisc is
still empty, so update_vf() arms go_passive again:
if (cl->qdisc->q.qlen == 0 && cl->cl_flags & HFSC_FSC)
go_passive = 1;
The leaf is then skipped by the cl_nactive == 0 check inside the loop,
which does not clear go_passive, so the stale go_passive propagates to the
parent and decrements its cl_nactive a second time. A parent that still
has other active children is driven to cl_nactive == 0 and removed from
the vttree, even though those siblings are still backlogged. They are
never dequeued again and the qdisc stalls.
Fix this by only arming go_passive when the class is actually active, so an
already-passive class no longer triggers a second passive transition. The
byte accounting (cl->cl_total += len) still runs for every ancestor, so
dequeued bytes continue to be counted exactly once.
📍 영향받는 시스템
Linux kernel (sch_hfsc 모듈을 사용하는 버전)
⚔️ 공격 벡터
특정 네트워크 트래픽 패턴을 유도하여 qdisc를 정지시키는 서비스 거부(DoS) 공격 가능
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 최신 패치 버전인지 확인하십시오.