🇰🇷 한글 설명
Linux 커널의 Marvell Libertas WiFi 드라이버에서 lbs_allocate_cmd_buffer() 함수가 메모리 할당 실패 시 cmdarray와 cmdarray[i].cmdbuf를 모두 해제하지 못하는 메모리 누수 취약점입니다. 드라이버 초기화 중 오류 처리 로직의 결함으로 인해 반복적인 할당 실패 시 메모리 누수가 누적됩니다.
💡 쉬운 설명
WiFi 드라이버에서 메모리를 할당할 때 실패하면 할당된 메모리 일부가 제대로 반환되지 않는 버그입니다. 이를 반복하면 시스템의 여유 메모리가 점점 줄어들 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
wifi: libertas: fix some memleaks in lbs_allocate_cmd_buffer()
In the for statement of lbs_allocate_cmd_buffer(), if the allocation of
cmdarray[i].cmdbuf fails, both cmdarray and cmdarray[i].cmdbuf needs to
be freed. Otherwise, there will be memleaks in lbs_allocate_cmd_buffer().
📍 영향받는 시스템
Linux kernel with Marvell Libertas WiFi driver (libertas-sd, libertas-usb, libertas-dpc modules in kernels before mid-2024)
⚔️ 공격 벡터
Local exploitation via triggering WiFi driver reset or module reload; requires system access
🛡️ 대응 방법
Update Linux kernel to version 6.10+ or apply kernel patch from distribution security updates
🔧 검증 코드
커널 버전을 확인하고 Libertas 모듈 버전을 조회한 후, CVE-2024-35828 패치 상태를 배포판 보안 공지 또는 kernel.org CVE 데이터베이스에서 확인합니다.
uname -r | awk -F. '{print $1"_"$2}' && modinfo libertas 2>/dev/null | grep -i version