diff options
author | 2019-10-04 10:51:31 +0100 | |
---|---|---|
committer | 2019-10-04 14:01:14 +0200 | |
commit | 4152561f5da3fca92af7179dd538ea89e248f9d0 (patch) | |
tree | ee65bdc3d24161e21a99abf6da6a19b8b40955bb /net/wireless/scan.c | |
parent | mac80211_hwsim: fix incorrect dev_alloc_name failure goto (diff) | |
download | wireguard-linux-4152561f5da3fca92af7179dd538ea89e248f9d0.tar.xz wireguard-linux-4152561f5da3fca92af7179dd538ea89e248f9d0.zip |
mac80211: Reject malformed SSID elements
Although this shouldn't occur in practice, it's a good idea to bounds
check the length field of the SSID element prior to using it for things
like allocations or memcpy operations.
Cc: <stable@vger.kernel.org>
Cc: Kees Cook <keescook@chromium.org>
Reported-by: Nicolas Waisman <nico@semmle.com>
Signed-off-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20191004095132.15777-1-will@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/scan.c')
0 files changed, 0 insertions, 0 deletions