🇰🇷 한글 설명
Linux kernel의 네트워킹 스케줄러(net/sched) act_gate 모듈에서 hrtimer callback과 dump 경로가 동시에 schedule list에 접근할 때 발생하는 race condition 취약점입니다. RCU 보호 메커니즘으로 파라미터 스냅샷을 생성하고 tcf_lock 하에서 안전하게 교체하여 메모리 손상이나 kernel panic을 방지합니다.
💡 쉬운 설명
Linux 네트워크 트래픽 관리 기능에서 여러 작업이 동시에 설정을 변경할 때 발생하는 동시성 문제입니다. 이를 RCU라는 안전한 메커니즘으로 처리하도록 수정했습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net/sched: act_gate: snapshot parameters with RCU on replace
The gate action can be replaced while the hrtimer callback or dump path is
walking the schedule list.
Convert the parameters to an RCU-protected snapshot and swap updates under
tcf_lock, freeing the previous snapshot via call_rcu(). When REPLACE omits
the entry list, preserve the existing schedule so the effective state is
unchanged.
📍 영향받는 시스템
CONFIG_NET_SCHED 및 act_gate 기능이 활성화된 Linux kernel (버전별 패치 상태 확인 필요)
⚔️ 공격 벡터
로컬 공격자가 tc(traffic control) 명령을 통해 gate action을 반복적으로 교체하여 kernel memory 손상이나 DoS 유발
🛡️ 대응 방법
Linux kernel을 최신 보안 패치가 적용된 버전으로 업그레이드
🔧 검증 코드
kernel config에서 스케줄러 설정 확인 후 현재 kernel 버전을 파악하고, 해당 버전의 patch 상태를 CVE 데이터베이스에서 조회하여 업그레이드 필요 여부 결정
cat /boot/config-$(uname -r) 2>/dev/null | grep -iE 'CONFIG_NET_SCHED|CONFIG_NET_ACT' && uname -r