🇰🇷 한글 설명
Linux 커널의 ath12k Wi-Fi 드라이버에서 동일한 스테이션이 여러 번 추가될 때 rx_stats 메모리가 중복 할당되는 메모리 누수 취약점이 발견되었습니다. 이로 인해 arsta->rx_stats가 반복적으로 할당되어 시스템 자원이 고갈될 수 있습니다.
💡 쉬운 설명
Wi-Fi 연결 과정에서 특정 장치가 반복적으로 연결을 시도할 때, 컴퓨터의 메모리를 불필요하게 계속 잡아먹는 버그가 있습니다. 이 문제가 지속되면 시스템의 메모리가 부족해져 성능이 떨어지거나 멈출 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath12k: Fix memory leak due to multiple rx_stats allocation
rx_stats for each arsta is allocated when adding a station.
arsta->rx_stats will be freed when a station is removed.
Redundant allocations are occurring when the same station is added
multiple times. This causes ath12k_mac_station_add() to be called
multiple times, and rx_stats is allocated each time. As a result there
is memory leaks.
Prevent multiple allocations of rx_stats when ath12k_mac_station_add()
is called repeatedly by checking if rx_stats is already allocated
before allocating again. Allocate arsta->rx_stats if arsta->rx_stats
is NULL respectively.
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3
📍 영향받는 시스템
Linux kernel (ath12k driver 사용 환경)
⚔️ 공격 벡터
동일한 스테이션을 반복적으로 추가하는 동작을 통해 메모리 누수 유발
🛡️ 대응 방법
ath12k 드라이버의 메모리 할당 로직이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 버전인지 확인