openwrt/package/kernel/mac80211
David Bauer 0f1b5ce2f5 mac80211: drop data frames without key on encrypted links
If we know that we have an encrypted link (based on having had
a key configured for TX in the past) then drop all data frames
in the key selection handler if there's no key anymore.

This fixes an issue with mac80211 internal TXQs - there we can
buffer frames for an encrypted link, but then if the key is no
longer there when they're dequeued, the frames are sent without
encryption. This happens if a station is disconnected while the
frames are still on the TXQ.

Detecting that a link should be encrypted based on a first key
having been configured for TX is fine as there are no use cases
for a connection going from with encryption to no encryption.
With extended key IDs, however, there is a case of having a key
configured for only decryption, so we can't just trigger this
behaviour on a key being configured.

Cc: stable@vger.kernel.org
Reported-by: Jouni Malinen <j@w1.fi>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: David Bauer <mail@david-bauer.net>
2020-04-17 13:27:40 +02:00
..
files mac80211: fix detecting existing interface 2020-04-17 11:36:35 +01:00
patches mac80211: drop data frames without key on encrypted links 2020-04-17 13:27:40 +02:00
scripts mac80211: add a maintenance script for upstream backport commits 2014-10-18 17:39:04 +00:00
ath.mk mac80211: switch to upstream owl-loader driver 2019-11-30 13:21:20 +01:00
broadcom.mk brcm2708: rename target to bcm27xx 2020-02-14 14:10:51 +01:00
intel.mk kernel: Remove support for kernel 3.18 2019-05-03 22:41:38 +02:00
Makefile mac80211: adapt for single-instance wpad 2020-04-14 00:22:21 +01:00
marvell.mk kernel: Remove support for kernel 3.18 2019-05-03 22:41:38 +02:00
ralink.mk ramips: mt7620: fix dependencies 2019-05-11 01:05:11 +02:00
realtek.mk mac80211: rtl8723bs: fix missing MMC dependency 2020-03-28 22:58:36 +01:00