🇰🇷 한글 설명
Linux 커널의 iwlwifi 드라이버에서 AMSDU가 비활성화될 때 TSO 세그먼트 분할 과정에서 발생하는 취약점입니다. 특정 조건에서 세그먼트 수가 0으로 계산되어 수만 개의 미세 프레임이 생성되며, 이로 인해 메모리 오염 및 TCP 재전송 큐에서의 Use-After-Free 오류가 발생할 수 있습니다.
💡 쉬운 설명
와이파이 드라이버의 계산 오류로 인해 데이터 하나를 수만 개의 아주 작은 조각으로 쪼개버리는 문제입니다. 이 과정에서 컴퓨터 메모리가 엉키게 되어 시스템이 멈추거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
wifi: iwlwifi: mld: fix TSO segmentation explosion when AMSDU is disabled
When the TLC notification disables AMSDU for a TID, the MLD driver sets
max_tid_amsdu_len to the sentinel value 1. The TSO segmentation path in
iwl_mld_tx_tso_segment() checks for zero but not for this sentinel,
allowing it to reach the num_subframes calculation:
num_subframes = (max_tid_amsdu_len + pad) / (subf_len + pad)
= (1 + 2) / (1534 + 2) = 0
This zero propagates to iwl_tx_tso_segment() which sets:
gso_size = num_subframes * mss = 0
Calling skb_gso_segment() with gso_size=0 creates over 32000 tiny
segments from a single GSO skb. This floods the TX ring with ~1024
micro-frames (the rest are purged), creating a massive burst of TX
completion events that can lead to memory corruption and a subsequent
use-after-free in TCP's retransmit queue (refcount underflow in
tcp_shifted_skb, NULL deref in tcp_rack_detect_loss).
The MVM driver is immune because it checks mvmsta->amsdu_enabled before
reaching the num_subframes calculation. The MLD driver has no equivalent
bitmap check and relies solely on max_tid_amsdu_len, which does not
catch the sentinel value.
Fix this by detecting the sentinel value (max_tid_amsdu_len == 1) at the
existing check and falling back to non-AMSDU TSO segmentation. Also add
a WARN_ON_ONCE guard after the num_subframes division as defense-in-depth
to catch any future code paths that produce zero through a different
mechanism.
📍 영향받는 시스템
Linux kernel (iwlwifi driver using MLD)
⚔️ 공격 벡터
특정 네트워크 환경(TLC notification으로 AMSDU가 비활성화된 상태)에서 조작된 트래픽을 전송하여 발생
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 iwlwifi 드라이버의 sentinel 값 체크 로직을 적용해야 함
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.