Commit 62b635dc authored by Dan Carpenter's avatar Dan Carpenter Committed by Johannes Berg
Browse files

wifi: cfg80211: sme: cap SSID length in __cfg80211_connect_result()



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

Fixes: c38c7018 ("wifi: cfg80211: Set SSID if it is not already set")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/0aaaae4a3ed37c6252363c34ae4904b1604e8e32.1756456951.git.dan.carpenter@linaro.org


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent c786794b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment