]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mac80211: mark station unauthorized before key removal
authorJohannes Berg <johannes.berg@intel.com>
Thu, 26 Mar 2020 14:51:35 +0000 (15:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2020 09:00:11 +0000 (11:00 +0200)
commit5865dd9467910363bb81e3e384bf153638fb07dc
treede81315561ed8830f56ca17c590c3a1556fb84af
parent83c0712e055a6fe1d43ca49316ce8f41669849c0
mac80211: mark station unauthorized before key removal

commit b16798f5b907733966fd1a558fca823b3c67e4a1 upstream.

If a station is still marked as authorized, mark it as no longer
so before removing its keys. This allows frames transmitted to it
to be rejected, providing additional protection against leaking
plain text data during the disconnection flow.

Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20200326155133.ccb4fb0bb356.If48f0f0504efdcf16b8921f48c6d3bb2cb763c99@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/sta_info.c