kernel_samsung_a53x/drivers/net/wireless/realtek/rtw88
Dmitry Antipov 5dbdf4c053 wifi: rtw88: always wait for both firmware loading attempts
[ Upstream commit 0e735a4c6137262bcefe45bb52fde7b1f5fc6c4d ]

In 'rtw_wait_firmware_completion()', always wait for both (regular and
wowlan) firmware loading attempts. Otherwise if 'rtw_usb_intf_init()'
has failed in 'rtw_usb_probe()', 'rtw_usb_disconnect()' may issue
'ieee80211_free_hw()' when one of 'rtw_load_firmware_cb()' (usually
the wowlan one) is still in progress, causing UAF detected by KASAN.

Fixes: c8e5695eae99 ("rtw88: load wowlan firmware if wowlan is supported")
Reported-by: syzbot+6c6c08700f9480c41fe3@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=6c6c08700f9480c41fe3
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20240726114657.25396-1-dmantipov@yandex.ru
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:16 +01:00
..
bf.c
bf.h
coex.c
coex.h
debug.c
debug.h
efuse.c
efuse.h
fw.c
fw.h
hci.h
Kconfig
mac.c
mac.h
mac80211.c
main.c
main.h
Makefile
pci.c
pci.h
phy.c
phy.h
ps.c
ps.h
reg.h
regd.c
regd.h
rtw8723d.c
rtw8723d.h
rtw8723d_table.c
rtw8723d_table.h
rtw8723de.c
rtw8723de.h
rtw8821c.c
rtw8821c.h
rtw8821c_table.c
rtw8821c_table.h
rtw8821ce.c
rtw8821ce.h
rtw8822b.c
rtw8822b.h
rtw8822b_table.c
rtw8822b_table.h
rtw8822be.c
rtw8822be.h
rtw8822c.c
rtw8822c.h
rtw8822c_table.c
rtw8822c_table.h
rtw8822ce.c
rtw8822ce.h
rx.c
rx.h
sec.c
sec.h
tx.c
tx.h
util.c
util.h
wow.c
wow.h