kernel-aes67/drivers/net/wireless/broadcom
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
..
b43 wifi: b43: silence sparse warnings 2024-02-28 13:37:22 +02:00
b43legacy wifi: mac80211: simplify non-chanctx drivers 2024-02-08 12:58:32 +01:00
brcm80211 wifi: brcm80211: handle pmk_op allocation failure 2024-03-05 20:56:13 +02:00
Kconfig
Makefile