linux/drivers/net/wireless
Szymon Heidrich 7794efa358 wifi: rndis_wlan: Prevent buffer overflow in rndis_query_oid
[ Upstream commit b870e73a56 ]

Since resplen and respoffs are signed integers sufficiently
large values of unsigned int len and offset members of RNDIS
response will result in negative values of prior variables.
This may be utilized to bypass implemented security checks
to either extract memory contents by manipulating offset or
overflow the data buffer via memcpy by manipulating both
offset and len.

Additionally assure that sum of resplen and respoffs does not
overflow so buffer boundaries are kept.

Fixes: 80f8c5b434 ("rndis_wlan: copy only useful data from rndis_command respond")
Signed-off-by: Szymon Heidrich <szymon.heidrich@gmail.com>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230111175031.7049-1-szymon.heidrich@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-01 08:34:18 +01:00
..
admtek
ath wifi: ath11k: Send PME message during wakeup from D3cold 2023-01-12 12:02:58 +01:00
atmel
broadcom wifi: brcmfmac: fix regression for Broadcom PCIe wifi devices 2023-01-24 07:24:32 +01:00
cisco
intel wifi: iwlwifi: fw: skip PPAG for JF 2023-01-24 07:24:30 +01:00
intersil
marvell
mediatek wifi: mt76: do not run mt76u_status_worker if the device is not running 2022-12-31 13:33:04 +01:00
microchip wifi: wilc1000: sdio: fix module autoloading 2023-01-07 11:11:51 +01:00
purelifi
quantenna
ralink
realtek wifi: rtl8xxxu: Fix the channel width reporting 2022-12-31 13:32:25 +01:00
rsi
silabs
st
ti
zydas
Kconfig
mac80211_hwsim.c
mac80211_hwsim.h
Makefile
ray_cs.c
ray_cs.h
rayctl.h
rndis_wlan.c wifi: rndis_wlan: Prevent buffer overflow in rndis_query_oid 2023-02-01 08:34:18 +01:00
virt_wifi.c
wl3501_cs.c
wl3501.h