🇰🇷 한글 설명
Linux 커널의 rtl8723bs 드라이버에서 OnAssocRsp() 함수 내 IE 파싱 루프 중 경계 외 읽기(OOB Read) 취약점이 발견되었습니다. 악의적인 AP가 조작된 AssocResponse를 전송할 경우, 할당된 버퍼 범위를 벗어난 메모리를 읽어 시스템 정보 유출이나 충돌을 유발할 수 있습니다.
💡 쉬운 설명
무선 랜 카드가 가짜 와이파이 신호를 받았을 때, 데이터의 길이를 잘못 계산하여 허용되지 않은 메모리 영역을 읽어버리는 문제입니다. 이로 인해 시스템이 멈추거나 중요한 정보가 유출될 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
staging: rtl8723bs: fix OOB read in OnAssocRsp() IE loop
The IE parsing loop in OnAssocRsp() advances by (pIE->length + 2) each
iteration but only guards on i < pkt_len. When a malicious AP sends an
AssocResponse whose last IE has only one byte remaining in the frame
(the element_id byte lands at pkt_len-1), the loop reads pIE->length
from pframe[pkt_len], which is one byte past the allocated receive buffer.
Additionally, even when the header bytes are in bounds, pIE->length
itself can extend the data window beyond pkt_len, silently passing a
truncated IE to the handler functions.
Add two guards at the top of the loop body:
1. Break if fewer than sizeof(*pIE) bytes remain (can't read header).
2. Break if the IE's declared data extends past pkt_len.
📍 영향받는 시스템
Linux kernel (staging: rtl8723bs driver 포함 버전)
⚔️ 공격 벡터
조작된 IE(Information Element)를 포함한 악의적인 AssocResponse를 전송하는 가짜 액세스 포인트(AP)를 통한 공격
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 rtl8723bs 드라이버의 IE 파싱 로직을 수정해야 합니다.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인합니다.