Skip to content
Commit 4ac2813c authored by Will Deacon's avatar Will Deacon Committed by Johannes Berg
Browse files

cfg80211: wext: avoid copying malformed SSIDs



Ensure the SSID element is bounds-checked prior to invoking memcpy()
with its length field, when copying to userspace.

Cc: <stable@vger.kernel.org>
Cc: Kees Cook <keescook@chromium.org>
Reported-by: default avatarNicolas Waisman <nico@semmle.com>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20191004095132.15777-2-will@kernel.org


[adjust commit log a bit]
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 4152561f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment