🇰🇷 한글 설명
Linux 커널의 ath12k WiFi 드라이버에서 MLO 연결 준비 실패 시 아휘브의 링크 매핑이 정리되지 않아 stale 상태가 남는 결함이 있습니다. 이로 인해 동일한 링크 ID를 가진 새 아휘브가 초기화될 때 경고(WARN_ON)가 발생하여 시스템 불안정을 초래할 수 있습니다.
💡 쉬운 설명
와이파이 연결 설정 중 오류가 발생했을 때, 시스템이 이전 상태를 제대로 정리하지 못해 충돌을 일으키는 버그입니다. 이는 네트워크 드라이버가 예상치 못한 경고 메시지를 출력하며 불안정해질 수 있는 원인이 됩니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath12k: clear stale link mapping of ahvif->links_map
When an arvif is initialized in non-AP STA mode but MLO connection
preparation fails before the arvif is created
(arvif->is_created remains false), the error path attempts to delete all
links. However, link deletion only executes when arvif->is_created is true.
As a result, ahvif retains a stale entry of arvif that is initialized but
not created.
When a new arvif is initialized with the same link id, this stale mapping
triggers the following WARN_ON.
WARNING: drivers/net/wireless/ath/ath12k/mac.c:4271 at ath12k_mac_op_change_vif_links+0x140/0x180 [ath12k], CPU#3: wpa_supplicant/275
Call trace:
ath12k_mac_op_change_vif_links+0x140/0x180 [ath12k] (P)
drv_change_vif_links+0xbc/0x1a4 [mac80211]
ieee80211_vif_update_links+0x54c/0x6a0 [mac80211]
ieee80211_vif_set_links+0x40/0x70 [mac80211]
ieee80211_prep_connection+0x84/0x450 [mac80211]
ieee80211_mgd_auth+0x200/0x480 [mac80211]
ieee80211_auth+0x14/0x20 [mac80211]
cfg80211_mlme_auth+0x90/0xf0 [cfg80211]
nl80211_authenticate+0x32c/0x380 [cfg80211]
genl_family_rcv_msg_doit+0xc8/0x134
Fix this issue by unassigning the link vif and clearing ahvif->links_map
if arvif is only initialized but not created.
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.5-01651-QCAHKSWPL_SILICONZ-1
📍 영향받는 시스템
Linux kernel (ath12k WiFi driver)
⚔️ 공격 벡터
MLO 연결 준비 실패 시 재연결 시도
🛡️ 대응 방법
패치된 Linux 커널 버전으로 업그레이드
🔧 검증 코드
출력된 커널 버전이 패치가 적용된 최신 버전인지 확인