In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211: Fix UAF in ieee80211scanrx()
ieee80211scanrx() tries to access scanreq->flags after a null check, but a UAF is observed when the scan is completed and _ieee80211scancompleted() executes, which then calls cfg80211scandone() leading to the freeing of scan_req.
Since scanreq is rcudereference()'d, prevent the racing in _ieee80211scancompleted() by ensuring that from mac80211's POV it is no longer accessed from an RCU read critical section before we call cfg80211scan_done().