linux/drivers/net/wireless
Matvey Kovalev 500fcc31e4 wifi: ath11k: fix NULL dereference in ath11k_qmi_m3_load()
commit 3fd2ef2ae2 upstream.

If ab->fw.m3_data points to data, then fw pointer remains null.
Further, if m3_mem is not allocated, then fw is dereferenced to be
passed to ath11k_err function.

Replace fw->size by m3_len.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 7db88b962f ("wifi: ath11k: add firmware-2.bin support")
Cc: stable@vger.kernel.org
Signed-off-by: Matvey Kovalev <matvey.kovalev@ispras.ru>
Reviewed-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
Link: https://patch.msgid.link/20250917192020.1340-1-matvey.kovalev@ispras.ru
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-10-06 11:20:06 +02:00
..
admtek wifi: cfg80211/mac80211: Add support to get radio index 2025-06-24 15:19:27 +02:00
ath wifi: ath11k: fix NULL dereference in ath11k_qmi_m3_load() 2025-10-06 11:20:06 +02:00
atmel wifi: cfg80211/mac80211: Add support to get radio index 2025-06-24 15:19:27 +02:00
broadcom wifi: brcmfmac: fix use-after-free when rescheduling brcmf_btcoex_info work 2025-08-26 13:46:18 +02:00
intel wifi: iwlwifi: pcie: fix byte count table for some devices 2025-09-15 11:20:47 +03:00
intersil wifi: Fix typos 2025-07-24 09:05:31 +02:00
marvell wifi: libertas: cap SSID len in lbs_associate() 2025-09-03 09:37:51 +02:00
mediatek wifi: mt76: fix linked list corruption 2025-08-27 11:27:57 +02:00
microchip wifi: wilc1000: avoid buffer overflow in WID string configuration 2025-09-03 09:39:32 +02:00
purelifi wifi: plfxlc: Fix error handling in usb driver probe 2025-07-18 14:23:23 +02:00
quantenna wifi: cfg80211/mac80211: Add support to get radio index 2025-06-24 15:19:27 +02:00
ralink wifi: rt2x00: fix CRC_CCITT dependency 2025-08-26 13:44:28 +02:00
realtek wifi: rtw89: fix use-after-free in rtw89_core_tx_kick_off_and_wait() 2025-10-06 11:20:05 +02:00
rsi wifi: cfg80211/mac80211: Add support to get radio index 2025-06-24 15:19:27 +02:00
silabs wifi: cfg80211/mac80211: Add support to get radio index 2025-06-24 15:19:27 +02:00
st wifi: cw1200: cap SSID length in cw1200_do_join() 2025-09-03 09:37:51 +02:00
ti Networking changes for 6.17. 2025-07-30 08:58:55 -07:00
virtual wifi: virt_wifi: Fix page fault on connect 2025-09-10 15:01:07 +02:00
zydas wifi: Fix typos 2025-07-24 09:05:31 +02:00
Kconfig wifi: remove orphaned rndis_wlan driver 2023-10-30 19:30:33 +02:00
Makefile wifi: remove orphaned rndis_wlan driver 2023-10-30 19:30:33 +02:00