🇰🇷 한글 설명
Linux 커널의 staging 영역에 있는 rtl8723bs 드라이버에서 메모리 해제 방식이 일치하지 않는 취약점이 발견되었습니다. vzalloc()으로 할당된 HalData를 kfree()로 잘못 해제하여 메모리 오염을 유발할 수 있으며, 이를 rtw_hal_data_deinit()를 사용하여 vfree()로 올바르게 해제하도록 수정되었습니다.
💡 쉬운 설명
컴퓨터 메모리를 빌려온 뒤 돌려줄 때 잘못된 방법으로 돌려주어 시스템이 혼란에 빠지는 문제입니다. 이로 인해 시스템이 불안정해지거나 데이터가 깨질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
staging: rtl8723bs: fix mismatched free of HalData in rtw_sdio_if1_init()
padapter->HalData is allocated via vzalloc(), but incorrectly freed
using kfree() in the rtw_sdio_if1_init() error path. Using kfree() to
release this vmalloc-backed buffer can lead to memory corruption.
Use rtw_hal_data_deinit() to pair the free correctly and free
HalData with vfree().
The bug was first flagged by an experimental static analysis tool we
are developing for kernel memory-management bugs. Manual inspection
confirms that the issue is still present in current mainline.
An x86_64 allyesconfig build showed no new warnings. As we do not have
suitable RTL8723BS SDIO hardware to test with, no runtime testing was
able to be performed.
📍 영향받는 시스템
Linux kernel (rtl8723bs driver 사용 시스템)
⚔️ 공격 벡터
로컬 공격자가 특정 드라이버 오류 경로를 유도하여 메모리 오염을 일으킴
🛡️ 대응 방법
Linux 커널을 최신 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인