🇰🇷 한글 설명
Linux 커널의 RSI911x WiFi 드라이버에서 vif 드라이버 데이터 크기를 설정하지 않아 발생하는 메모리 오염 취약점입니다. 이로 인해 구조체 경계를 벗어난 메모리 접근이 발생하며, 특정 상황에서 시스템 크래시를 유발할 수 있습니다.
💡 쉬운 설명
WiFi 드라이버가 데이터를 저장할 공간을 제대로 예약하지 않아, 옆에 있는 다른 중요한 데이터를 덮어쓰는 문제입니다. 이로 인해 컴퓨터 시스템이 갑자기 멈추거나 꺼질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
wifi: rsi: Fix memory corruption due to not set vif driver data size
The struct ieee80211_vif contains trailing space for vif driver data,
when struct ieee80211_vif is allocated, the total memory size that is
allocated is sizeof(struct ieee80211_vif) + size of vif driver data.
The size of vif driver data is set by each WiFi driver as needed.
The RSI911x driver does not set vif driver data size, no trailing space
for vif driver data is therefore allocated past struct ieee80211_vif .
The RSI911x driver does however use the vif driver data to store its
vif driver data structure "struct vif_priv". An access to vif->drv_priv
leads to access out of struct ieee80211_vif bounds and corruption of
some memory.
In case of the failure observed locally, rsi_mac80211_add_interface()
would write struct vif_priv *vif_info = (struct vif_priv *)vif->drv_priv;
vif_info->vap_id = vap_idx. This write corrupts struct fq_tin member
struct list_head new_flows . The flow = list_first_entry(head, struct
fq_flow, flowchain); in fq_tin_reset() then reports non-NULL bogus
address, which when accessed causes a crash.
The trigger is very simple, boot the machine with init=/bin/sh , mount
devtmpfs, sysfs, procfs, and then do "ip link set wlan0 up", "sleep 1",
"ip link set wlan0 down" and the crash occurs.
Fix this by setting the correct size of vif driver data, which is the
size of "struct vif_priv", so that memory is allocated and the driver
can store its driver data in it, instead of corrupting memory around
it.
📍 영향받는 시스템
Linux kernel with RSI911x WiFi driver
⚔️ 공격 벡터
로컬 환경에서 네트워크 인터페이스를 반복적으로 활성화 및 비활성화하여 메모리 오염 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 vif 드라이버 데이터 크기 설정 수정 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.