CVE-2022-49942
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.27% (higher than 21% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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().

Affected

Product or packageVersionsReported by
Linux Linuxfrom cd7760e62c2ac8581f050b2d36501d1a60beaf83 before cdb9a8da9b84800eb15506cd9363cf0cf059e677, from cd7760e62c2ac8581f050b2d36501d1a60beaf83 before 1691a48aef0a82d1754b9853dae7e3f5cacdf70b, from cd7760e62c2ac8581f050b2d36501d1a60beaf83 before d9eb37db6a28b59a95a3461450ee209654c5f95b, from cd7760e62c2ac8581f050b2d36501d1a60beaf83 before 66689c5c02acd4d76c28498fe220998610aec61e, from cd7760e62c2ac8581f050b2d36501d1a60beaf83 before dd649b49219a0388cc10fc40e4c2ea681566a780, from cd7760e62c2ac8581f050b2d36501d1a60beaf83 before 552ba102a6898630a7d16887f29e606d6fabe508, from cd7760e62c2ac8581f050b2d36501d1a60beaf83 before 864e280cb3a9a0f5212b16ef5057c4e692f7039d, from cd7760e62c2ac8581f050b2d36501d1a60beaf83 before 15bc8966b6d3a5b9bfe4c9facfa02f2b69b1e5f0 and 1 more
Not affected: before 3.13, from 4.9.328 up to 4.9.*, from 4.14.293 up to 4.14.*, from 4.19.258 up to 4.19.*, from 5.4.213 up to 5.4.*, from 5.10.142 up to 5.10.*
CVE List
linux linux_kernelfrom 3.13 before 4.9.328, from 4.10 before 4.14.293, from 4.15 before 4.19.258, from 4.20 before 5.4.213, from 5.5 before 5.10.142, from 5.11 before 5.15.66, from 5.16 before 5.19.8, 6.0NVD

Classification

What each source says

CVE List

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().

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: wifi: mac80211: No finalizar la CSA en modo IBSS si el estado es desconectado. Cuando no estamos conectados a un canal, enviar el anuncio de cambio de canal no tiene sentido. En ese caso, la lista BSS está vacía. Esto provoca que se omita el bucle for en cfg80211_get_bss(), por lo que la función devuelve NULL (consulte la línea 1424 de net/wireless/scan.c), lo que provoca la activación de WARN_ON() en ieee80211_ibss_csa_beacon() (consulte la línea 500 de net/mac80211/ibss.c), lo que se informó en el panel de control de syzkaller. Por lo tanto, se debe comprobar si existe una conexión antes de generar la baliza CSA en ieee80211_ibss_finish_csa().

References

Sources

SourceRecordLicence
CVE ListCVE-2022-49942 changed 2026-05-11CVE Terms of Use
NVDCVE-2022-49942 changed 2026-06-17Public domain