🇰🇷 한글 설명
Linux 커널의 ath6kl 드라이버에서 연결 요청/응답 길이를 계산할 때 하한선 검증이 누락되어 발생하는 취약점입니다. 특정 조건에서 길이가 음수로 언더플로우(underflow)되어 매우 큰 값으로 변환되며, 이로 인해 커널 슬랩 메모리의 인접 데이터가 사용자 공간으로 유출될 수 있습니다.
💡 쉬운 설명
와이파이 연결 과정에서 데이터 길이를 계산할 때 오류가 발생하여, 컴퓨터 내부의 민감한 정보가 외부로 새어 나갈 수 있는 문제입니다. 공격자는 이를 통해 시스템의 중요한 메모리 내용을 훔쳐볼 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath6kl: clamp assoc request/response lengths before subtracting IE offsets
ath6kl_cfg80211_connect_event() subtracts fixed IE offsets from
assoc_req_len (-= 4) and assoc_resp_len (-= 6), both u8, with no lower
bound. The aggregate check recently added to ath6kl_wmi_connect_event_rx()
bounds the declared lengths from above (their sum must fit the received
event), but an assoc request/response shorter than its fixed offset still
underflows here: the u8 wraps to ~250, and cfg80211_connect_result() /
cfg80211_roamed() then treat that wrapped value as the IE length and copy
that many bytes out of the small assoc_info buffer to user space via
nl80211, disclosing adjacent slab memory.
Clamp both lengths to their offsets before subtracting.
Found by 0sec (https://0sec.ai) using automated source analysis; the
missing lower bound is evident from source. Compile-tested.
📍 영향받는 시스템
Linux kernel (ath6kl driver 사용 시스템)
⚔️ 공격 벡터
조작된 길이의 와이파이 연결 요청/응답 패킷을 전송하여 메모리 언더플로우 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 연결 길이 값에 대한 하한선 검증 로직 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 버전인지 확인