diff options
author | 2019-10-04 10:51:32 +0100 | |
---|---|---|
committer | 2019-10-04 14:04:08 +0200 | |
commit | 4ac2813cc867ae563a1ba5a9414bfb554e5796fa (patch) | |
tree | ce2debc1c58aec090511a3df0ac5ad9b5ef33a37 /net/core/net_namespace.c | |
parent | mac80211: Reject malformed SSID elements (diff) | |
download | wireguard-linux-4ac2813cc867ae563a1ba5a9414bfb554e5796fa.tar.xz wireguard-linux-4ac2813cc867ae563a1ba5a9414bfb554e5796fa.zip |
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: Nicolas Waisman <nico@semmle.com>
Signed-off-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20191004095132.15777-2-will@kernel.org
[adjust commit log a bit]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/core/net_namespace.c')
0 files changed, 0 insertions, 0 deletions