kernel_samsung_a53x/drivers/net/wireless
En-Wei Wu 1c786f1067 wifi: virt_wifi: avoid reporting connection success with wrong SSID
[ Upstream commit b5d14b0c6716fad7f0c94ac6e1d6f60a49f985c7 ]

When user issues a connection with a different SSID than the one
virt_wifi has advertised, the __cfg80211_connect_result() will
trigger the warning: WARN_ON(bss_not_found).

The issue is because the connection code in virt_wifi does not
check the SSID from user space (it only checks the BSSID), and
virt_wifi will call cfg80211_connect_result() with WLAN_STATUS_SUCCESS
even if the SSID is different from the one virt_wifi has advertised.
Eventually cfg80211 won't be able to find the cfg80211_bss and generate
the warning.

Fixed it by checking the SSID (from user space) in the connection code.

Fixes: c7cdba31ed8b ("mac80211-next: rtnetlink wifi simulation device")
Reported-by: syzbot+d6eb9cee2885ec06f5e3@syzkaller.appspotmail.com
Signed-off-by: En-Wei Wu <en-wei.wu@canonical.com>
Link: https://patch.msgid.link/20240705023756.10954-1-en-wei.wu@canonical.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:20:08 +01:00
..
admtek Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ath wifi: ath11k: fix wrong handling of CCMP256 and GCMP ciphers 2024-11-23 23:20:07 +01:00
atmel Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
broadcom wifi: brcmsmac: LCN PHY code is used for BCM4313 2G-only device 2024-11-23 23:20:06 +01:00
cisco Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cnss2 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cnss_genl Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cnss_prealloc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cnss_utils Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel wifi: iwlwifi: mvm: don't read past the mfuart notifcation 2024-11-19 14:19:00 +01:00
intersil Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
marvell wifi: mwl8k: initialize cmd->addr[] properly 2024-11-19 12:26:56 +01:00
mediatek wifi: mt76: replace skb_put with skb_put_zero 2024-10-04 20:09:30 -03:00
microchip wifi: wilc1000: fix ies_len type in connect path 2024-11-19 14:19:41 +01:00
qualcomm/qca6490 qcacld-3.0: Disable auto IRQ affinity feature 2024-11-17 17:44:53 +01:00
quantenna wireless: Remove redundant 'flush_workqueue()' calls 2024-11-19 08:44:44 +01:00
ralink wifi: rt2x00: restart beacon queue when hardware reset 2024-11-18 12:13:11 +01:00
realtek wifi: rtlwifi: rtl8192de: Fix 5 GHz TX power 2024-11-19 14:19:10 +01:00
rsi Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st wireless: Remove redundant 'flush_workqueue()' calls 2024-11-19 08:44:44 +01:00
ti Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
zydas Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mac80211_hwsim.c wifi: mac80211_hwsim: fix clang-specific fortify warning 2024-11-18 11:43:12 +01:00
mac80211_hwsim.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ray_cs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ray_cs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rayctl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rndis_wlan.c wireless: Remove redundant 'flush_workqueue()' calls 2024-11-19 08:44:44 +01:00
virt_wifi.c wifi: virt_wifi: avoid reporting connection success with wrong SSID 2024-11-23 23:20:08 +01:00
wl3501.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wl3501_cs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00