В ядре Linux устранена следующая уязвимость:
wifi: ath9k: избегайте ссылок на память uninit в ath9k_wmi_ctrl_rx
По причинам, также описанным в коммите b383e8abed41 («wifi: ath9k: избежать
память uninit, прочитанная в ath9k_htc_rx_msg()"), ath9k_htc_rx_msg() должна
проверьте pkt_len перед доступом к SKB. Например, полученный СКБ мог быть плохо сконструирован с
pkt_len = 8. В этом случае SKB может содержать только действительный htc_frame_hdr.
но после обработки в ath9k_htc_rx_msg() и передачи в
ath9k_wmi_ctrl_rx() обработчик RX конечной точки, ожидается, что он будет иметь WMI
заголовок команды, который должен находиться внутри полезных данных.
Реализуйте проверку работоспособности внутри ath9k_wmi_ctrl_rx(). В противном случае, единица измерения
к памяти можно обратиться. Протестировано на Qualcomm Atheros Communications AR9271 802.11n.
Найден Центром проверки Linux (linuxtesting.org) с помощью Syzkaller.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: wifi: ath9k: avoid referencing uninit memory in ath9k_wmi_ctrl_rx For the reasons also described in commit b383e8abed41 ("wifi: ath9k: avoid uninit memory read in ath9k_htc_rx_msg()"), ath9k_htc_rx_msg() should validate pkt_len before accessing the SKB. For example, the obtained SKB may have been badly constructed with pkt_len = 8. In this case, the SKB can only contain a valid htc_frame_hdr but after being processed in ath9k_htc_rx_msg() and passed to ath9k_wmi_ctrl_rx() endpoint RX handler, it is expected to have a WMI command header which should be located inside its data payload. Implement sanity checking inside ath9k_wmi_ctrl_rx(). Otherwise, uninit memory can be referenced. Tested on Qualcomm Atheros Communications AR9271 802.11n . Found by Linux Verification Center (linuxtesting.org) with Syzkaller.