]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mac80211: use safe list iteration in radar detect work
authorBenjamin Berg <benjamin.berg@intel.com>
Tue, 5 May 2026 13:15:40 +0000 (15:15 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 5 May 2026 16:07:39 +0000 (18:07 +0200)
commitac8eb3e18f41e2cc8492cc1d358bcb786c850270
tree3b83de288d8a62b4cb361011ff0cdfe13a08fb5d
parent714ae274e869e197fef21c037156fe6e37ce9e7a
wifi: mac80211: use safe list iteration in radar detect work

The call to ieee80211_dfs_cac_cancel can cause the iterated chanctx to
be freed and removed from the list. Guard against this to avoid a
slab-use-after-free error.

Cc: stable@vger.kernel.org
Fixes: bca8bc0399ac ("wifi: mac80211: handle ieee80211_radar_detected() for MLO")
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Link: https://patch.msgid.link/20260505151539.236d63a1b736.I35dbb9e96a2d4a480be208770fdd99ba3b817b79@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c