wifi: mac80211: Fix UAF in ieee80211_scan_rx() (Linux Linux)

CVE-2022-49934
HIGH 8.8

At a glance

Source
NVD
EPSS
EPSS 0.23 % · percentile 14 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: 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().

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 8.8CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 8.8CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 6ea0a69ca21bbddab5b3979c2190013b0263e749 < 6eb181a64fdabf10be9e54de728876667da20255 ; affected 6ea0a69ca21bbddab5b3979c2190013b0263e749 < e0ff39448cea654843744c72c6780293c5082cb1 ; affected 6ea0a69ca21bbddab5b3979c2190013b0263e749 < 78a07732fbb0934d14827d8f09b9aa6a49ee1aa9 ; affected 6ea0a69ca21bbddab5b3979c2190013b0263e749 < 9ad48cbf8b07f10c1e4a7a262b32a9179ae9dd2d ; affected 6ea0a69ca21bbddab5b3979c2190013b0263e749 < 4abc8c07a065ecf771827bde3c63fbbe4aa0c08b ; affected 6ea0a69ca21bbddab5b3979c2190013b0263e749 < 5d20c6f932f2758078d0454729129c894fe353e7
Linux · Linuxaffected 3.19 ; unaffected 0 < 3.19 ; unaffected 4.9.330 ≤ 4.9.* ; unaffected 4.14.295 ≤ 4.14.* ; unaffected 4.19.260 ≤ 4.19.* ; unaffected 5.4.215 ≤ 5.4.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD