🇰🇷 한글 설명
Linux 커널의 ath5k 무선 드라이버에서 배열 인덱스 범위를 초과하는 메모리 접근 취약점이 발견되었습니다. 이는 전송 상태 정보 구조체의 다음 멤버인 ack_signal을 덮어쓰는 경미한 영향을 미칩니다.
💡 쉬운 설명
와이파이 드라이버가 메모리 배열의 경계를 넘어 잘못된 데이터를 쓰는 오류가 있습니다. 이로 인해 시스템의 다른 설정 값이 손상될 수 있는 잠재적 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath5k: do not access array OOB
Vincent reports:
> The ath5k driver seems to do an array-index-out-of-bounds access as
> shown by the UBSAN kernel message:
> UBSAN: array-index-out-of-bounds in drivers/net/wireless/ath/ath5k/base.c:1741:20
> index 4 is out of range for type 'ieee80211_tx_rate [4]'
> ...
> Call Trace:
> <TASK>
> dump_stack_lvl+0x5d/0x80
> ubsan_epilogue+0x5/0x2b
> __ubsan_handle_out_of_bounds.cold+0x46/0x4b
> ath5k_tasklet_tx+0x4e0/0x560 [ath5k]
> tasklet_action_common+0xb5/0x1c0
It is real. 'ts->ts_final_idx' can be 3 on 5212, so:
info->status.rates[ts->ts_final_idx + 1].idx = -1;
with the array defined as:
struct ieee80211_tx_rate rates[IEEE80211_TX_MAX_RATES];
while the size is:
#define IEEE80211_TX_MAX_RATES 4
is indeed bogus.
Set this 'idx = -1' sentinel only if the array index is less than the
array size. As mac80211 will not look at rates beyond the size
(IEEE80211_TX_MAX_RATES).
Note: The effect of the OOB write is negligible. It just overwrites the
next member of info->status, i.e. ack_signal.
📍 영향받는 시스템
Linux kernel (ath5k driver)
⚔️ 공격 벡터
로컬 코드 실행을 통한 메모리 손상
🛡️ 대응 방법
패치된 Linux 커널 버전으로 업그레이드
🔧 검증 코드
출력된 커널 버전이 패치가 적용된 최신 안정 버전인지 확인