]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mac80211: Reject malformed SSID elements
authorWill Deacon <will@kernel.org>
Fri, 4 Oct 2019 09:51:31 +0000 (10:51 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 12 Nov 2019 17:46:50 +0000 (18:46 +0100)
commit1cb4104158608675a420aa347cc7ff998cf15c56
treec85653e62522a808a4bed1213e7380a5aea318d4
parent3fa1b6c8640259d2618b85ee034babf15e40d2b6
mac80211: Reject malformed SSID elements

BugLink: https://bugs.launchpad.net/bugs/1850456
commit 4152561f5da3fca92af7179dd538ea89e248f9d0 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
net/mac80211/mlme.c