kernel_samsung_a53x/drivers/net/wireless
Gustavo A. R. Silva 6edaf87a29 wifi: mwifiex: Fix memcpy() field-spanning write warning in mwifiex_cmd_802_11_scan_ext()
[ Upstream commit 498365e52bebcbc36a93279fe7e9d6aec8479cee ]

Replace one-element array with a flexible-array member in
`struct host_cmd_ds_802_11_scan_ext`.

With this, fix the following warning:

elo 16 17:51:58 surfacebook kernel: ------------[ cut here ]------------
elo 16 17:51:58 surfacebook kernel: memcpy: detected field-spanning write (size 243) of single field "ext_scan->tlv_buffer" at drivers/net/wireless/marvell/mwifiex/scan.c:2239 (size 1)
elo 16 17:51:58 surfacebook kernel: WARNING: CPU: 0 PID: 498 at drivers/net/wireless/marvell/mwifiex/scan.c:2239 mwifiex_cmd_802_11_scan_ext+0x83/0x90 [mwifiex]

Reported-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Closes: https://lore.kernel.org/linux-hardening/ZsZNgfnEwOcPdCly@black.fi.intel.com/
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/ZsZa5xRcsLq9D+RX@elsanto
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:39 +01:00
..
admtek
ath wifi: ath11k: fix array out-of-bound access in SoC stats 2024-11-23 23:21:38 +01:00
atmel
broadcom wifi: brcmsmac: advertise MFP_CAPABLE to enable WPA3 2024-11-23 23:21:03 +01:00
cisco
cnss2
cnss_genl
cnss_prealloc
cnss_utils
intel wifi: iwlwifi: mvm: don't wait for tx queues if firmware is dead 2024-11-23 23:21:15 +01:00
intersil
marvell wifi: mwifiex: Fix memcpy() field-spanning write warning in mwifiex_cmd_802_11_scan_ext() 2024-11-23 23:21:39 +01:00
mediatek wifi: mt76: mt7915: fix rx filter setting for bfee functionality 2024-11-23 23:21:18 +01:00
microchip wifi: wilc1000: fix potential RCU dereference issue in wilc_parse_join_bss_param 2024-11-23 23:21:18 +01:00
qualcomm/qca6490
quantenna wireless: Remove redundant 'flush_workqueue()' calls 2024-11-19 08:44:44 +01:00
ralink wifi: rt2x00: restart beacon queue when hardware reset 2024-11-18 12:13:11 +01:00
realtek wifi: rtw88: select WANT_DEV_COREDUMP 2024-11-23 23:21:38 +01:00
rsi
scsc
st wifi: cw1200: Avoid processing an invalid TIM IE 2024-11-23 23:20:44 +01:00
ti
zydas
Kconfig
mac80211_hwsim.c
mac80211_hwsim.h
Makefile
ray_cs.c
ray_cs.h
rayctl.h
rndis_wlan.c wireless: Remove redundant 'flush_workqueue()' calls 2024-11-19 08:44:44 +01:00
virt_wifi.c wifi: virt_wifi: don't use strlen() in const context 2024-11-23 23:20:08 +01:00
wl3501.h
wl3501_cs.c