1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/broadcom/brcm80211
Duoming Zhou b4152222e0 wifi: brcm80211: handle pmk_op allocation failure
The kzalloc() in brcmf_pmksa_v3_op() will return null if the
physical memory has run out. As a result, if we dereference
the null value, the null pointer dereference bug will happen.

Return -ENOMEM from brcmf_pmksa_v3_op() if kzalloc() fails
for pmk_op.

Fixes: a96202acae ("wifi: brcmfmac: cfg80211: Add support for PMKID_V3 operations")
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Duoming Zhou <duoming@zju.edu.cn>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240229103153.18533-1-duoming@zju.edu.cn
2024-03-05 20:56:13 +02:00
..
brcmfmac wifi: brcm80211: handle pmk_op allocation failure 2024-03-05 20:56:13 +02:00
brcmsmac wifi: brcmsmac: silence sparse warnings 2024-02-28 13:37:22 +02:00
brcmutil wifi: brcmutil: use helper function pktq_empty() instead of open code 2023-06-01 16:14:43 +03:00
include wifi: brcmfmac: pcie: Add IDs/properties for BCM4387 2023-02-27 16:59:35 +02:00
Kconfig brcmsmac: rework LED dependencies 2021-12-08 20:17:06 +02:00
Makefile brcmfmac: switch source files to using SPDX license identifier 2019-05-28 15:24:12 +03:00