diff options
author | Siddh Raman Pant <[email protected]> | 2022-08-20 01:33:40 +0530 |
---|---|---|
committer | Johannes Berg <[email protected]> | 2022-08-25 10:00:21 +0200 |
commit | 60deb9f10eec5c6a20252ed36238b55d8b614a2c (patch) | |
tree | 9a372137cd50ef90756915e2a8f9543059ccca0c /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 24c7a64ea4764d70e4ac9b0a60ecd9b03c68435e (diff) |
wifi: mac80211: Fix UAF in ieee80211_scan_rx()
ieee80211_scan_rx() tries to access scan_req->flags after a
null check, but a UAF is observed when the scan is completed
and __ieee80211_scan_completed() executes, which then calls
cfg80211_scan_done() leading to the freeing of scan_req.
Since scan_req is rcu_dereference()'d, prevent the racing in
__ieee80211_scan_completed() by ensuring that from mac80211's
POV it is no longer accessed from an RCU read critical section
before we call cfg80211_scan_done().
Cc: [email protected]
Link: https://syzkaller.appspot.com/bug?extid=f9acff9bf08a845f225d
Reported-by: [email protected]
Suggested-by: Johannes Berg <[email protected]>
Signed-off-by: Siddh Raman Pant <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions