linux-stable/net/wireless
Dan Carpenter 31229145e6 wifi: cfg80211: sme: cap SSID length in __cfg80211_connect_result()
[ Upstream commit 62b635dcd6 ]

If the ssid->datalen is more than IEEE80211_MAX_SSID_LEN (32) it would
lead to memory corruption so add some bounds checking.

Fixes: c38c701851 ("wifi: cfg80211: Set SSID if it is not already set")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/0aaaae4a3ed37c6252363c34ae4904b1604e8e32.1756456951.git.dan.carpenter@linaro.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-09-09 18:58:12 +02:00
..
certs
tests
.gitignore
ap.c
chan.c
core.c wifi: cfg80211: init wiphy_work before allocating rfkill fails 2025-06-27 11:11:39 +01:00
core.h
debugfs.c
debugfs.h
ethtool.c
ibss.c
Kconfig
lib80211_crypt_ccmp.c
lib80211_crypt_tkip.c
lib80211_crypt_wep.c
lib80211.c
Makefile
mesh.c
mlme.c wifi: cfg80211: reject HTC bit for management frames 2025-08-20 18:30:29 +02:00
nl80211.c wifi: nl80211: Set num_sub_specs before looping through sub_specs 2025-08-15 12:13:46 +02:00
nl80211.h
ocb.c
of.c
pmsr.c
radiotap.c
rdev-ops.h
reg.c
reg.h
scan.c wifi: cfg80211: fix use-after-free in cmp_bss() 2025-09-09 18:58:05 +02:00
sme.c wifi: cfg80211: sme: cap SSID length in __cfg80211_connect_result() 2025-09-09 18:58:12 +02:00
sysfs.c
sysfs.h
trace.c
trace.h
util.c wifi: prevent A-MSDU attacks in mesh networks 2025-07-17 18:37:10 +02:00
wext-compat.c
wext-compat.h
wext-core.c
wext-priv.c
wext-proc.c
wext-sme.c
wext-spy.c