]> www.infradead.org Git - users/dwmw2/linux.git/commit
wifi: mac80211: check/clear fast rx for non-4addr sta VLAN changes
authorFelix Fietkau <nbd@nbd.name>
Sat, 16 Mar 2024 07:43:36 +0000 (08:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:19:31 +0000 (16:19 +0200)
commitc8bddbd91bc8e42c961a5e2cec20ab879f21100f
tree4d7f07d4f277c367384bde68c6f17b0c7b831b7b
parent56e05d28c39b34ef4a27502ab8078f18c8815adc
wifi: mac80211: check/clear fast rx for non-4addr sta VLAN changes

commit 4f2bdb3c5e3189297e156b3ff84b140423d64685 upstream.

When moving a station out of a VLAN and deleting the VLAN afterwards, the
fast_rx entry still holds a pointer to the VLAN's netdev, which can cause
use-after-free bugs. Fix this by immediately calling ieee80211_check_fast_rx
after the VLAN change.

Cc: stable@vger.kernel.org
Reported-by: ranygh@riseup.net
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://msgid.link/20240316074336.40442-1-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/cfg.c