wifi: mac80211: Don't finalize CSA in IBSS mode if state is disconnected (Linux Linux)

CVE-2022-49942
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.26 % · percentile 18 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: Don't finalize CSA in IBSS mode if state is disconnected When we are not connected to a channel, sending channel "switch" announcement doesn't make any sense. The BSS list is empty in that case. This causes the for loop in cfg80211_get_bss() to be bypassed, so the function returns NULL (check line 1424 of net/wireless/scan.c), causing the WARN_ON() in ieee80211_ibss_csa_beacon() to get triggered (check line 500 of net/mac80211/ibss.c), which was consequently reported on the syzkaller dashboard. Thus, check if we have an existing connection before generating the CSA beacon in ieee80211_ibss_finish_csa().

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected cd7760e62c2ac8581f050b2d36501d1a60beaf83 < cdb9a8da9b84800eb15506cd9363cf0cf059e677 ; affected cd7760e62c2ac8581f050b2d36501d1a60beaf83 < 1691a48aef0a82d1754b9853dae7e3f5cacdf70b ; affected cd7760e62c2ac8581f050b2d36501d1a60beaf83 < d9eb37db6a28b59a95a3461450ee209654c5f95b ; affected cd7760e62c2ac8581f050b2d36501d1a60beaf83 < 66689c5c02acd4d76c28498fe220998610aec61e ; affected cd7760e62c2ac8581f050b2d36501d1a60beaf83 < dd649b49219a0388cc10fc40e4c2ea681566a780 ; affected cd7760e62c2ac8581f050b2d36501d1a60beaf83 < 552ba102a6898630a7d16887f29e606d6fabe508
Linux · Linuxaffected 3.13 ; unaffected 0 < 3.13 ; unaffected 4.9.328 ≤ 4.9.* ; unaffected 4.14.293 ≤ 4.14.* ; unaffected 4.19.258 ≤ 4.19.* ; unaffected 5.4.213 ≤ 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