wifi: mac80211: fix use-after-free
authorJohannes Berg <johannes.berg@intel.com>
Wed, 17 Aug 2022 08:44:05 +0000 (10:44 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 25 Aug 2022 08:41:00 +0000 (10:41 +0200)
commit40fb87129049ec5876dabf4a4d4aed6642b31f1a
tree9735b824f6eb4a7a2a75529a2944f33f6c6c2307
parentc88f1542ee72872a276115c868f580a391f04a7b
wifi: mac80211: fix use-after-free

We've already freed the assoc_data at this point, so need
to use another copy of the AP (MLD) address instead.

Fixes: 81151ce462e5 ("wifi: mac80211: support MLO authentication/association with one link")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c