]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cfg80211: wext: avoid copying malformed SSIDs
authorWill Deacon <will@kernel.org>
Fri, 4 Oct 2019 09:51:32 +0000 (10:51 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 15 Nov 2019 00:56:56 +0000 (00:56 +0000)
commite70efb76ea2eb9f08dc627d93d35a8e5c065346d
tree51241f72da7e26db1add782c5e9534f5a1d56343
parentbc3d2e9cfdc5c1b7e5ed34eb5279e47d462b4d5c
cfg80211: wext: avoid copying malformed SSIDs

commit 4ac2813cc867ae563a1ba5a9414bfb554e5796fa upstream.

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

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/wireless/wext-sme.c