linux-brain/drivers/net/wireless/quantenna/qtnfmac
Lee Gibson d26436a3b9 qtnfmac: Fix possible buffer overflow in qtnf_event_handle_external_auth
[ Upstream commit 130f634da1af649205f4a3dd86cbe5c126b57914 ]

Function qtnf_event_handle_external_auth calls memcpy without
checking the length.
A user could control that length and trigger a buffer overflow.
Fix by checking the length is within the maximum allowed size.

Signed-off-by: Lee Gibson <leegib@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210419145842.345787-1-leegib@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-19 10:08:24 +02:00
..
pcie qtnfmac: fix error return code in qtnf_pcie_probe() 2020-12-30 11:51:11 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile qtnfmac: add support for Topaz chipsets 2018-11-06 18:53:50 +02:00
bus.h qtnfmac: send EAPOL frames via control path 2019-04-04 12:57:33 +03:00
cfg80211.c qtnfmac: allow to control DFS slave radar detection 2019-04-26 14:53:12 +03:00
cfg80211.h qtnfmac: convert to SPDX license identifiers 2019-02-01 14:12:02 +02:00
commands.c qtnfmac: fix resource leaks on unsupported iftype error return path 2020-10-29 09:57:43 +01:00
commands.h qtnfmac: allow to control DFS slave radar detection 2019-04-26 14:53:12 +03:00
core.c qtnfmac: modify debugfs to support multiple cards 2019-04-26 14:53:13 +03:00
core.h qtnfmac: modify debugfs to support multiple cards 2019-04-26 14:53:13 +03:00
debug.c qtnfmac: modify debugfs to support multiple cards 2019-04-26 14:53:13 +03:00
debug.h qtnfmac: convert to SPDX license identifiers 2019-02-01 14:12:02 +02:00
event.c qtnfmac: Fix possible buffer overflow in qtnf_event_handle_external_auth 2021-05-19 10:08:24 +02:00
event.h qtnfmac: convert to SPDX license identifiers 2019-02-01 14:12:02 +02:00
qlink.h qtnfmac: allow to control DFS slave radar detection 2019-04-26 14:53:12 +03:00
qlink_util.c qtnfmac: allow each MAC to specify its own regulatory rules 2019-04-04 12:57:28 +03:00
qlink_util.h qtnfmac: allow each MAC to specify its own regulatory rules 2019-04-04 12:57:28 +03:00
qtn_hw_ids.h qtnfmac: convert to SPDX license identifiers 2019-02-01 14:12:02 +02:00
shm_ipc.c qtnfmac: convert to SPDX license identifiers 2019-02-01 14:12:02 +02:00
shm_ipc.h qtnfmac: convert to SPDX license identifiers 2019-02-01 14:12:02 +02:00
shm_ipc_defs.h qtnfmac: convert to SPDX license identifiers 2019-02-01 14:12:02 +02:00
trans.c qtnfmac: convert to SPDX license identifiers 2019-02-01 14:12:02 +02:00
trans.h qtnfmac: convert to SPDX license identifiers 2019-02-01 14:12:02 +02:00
util.c qtnfmac: convert to SPDX license identifiers 2019-02-01 14:12:02 +02:00
util.h qtnfmac: convert to SPDX license identifiers 2019-02-01 14:12:02 +02:00