CVE-2022-49942

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

State
Published
Severity
Not scored
Published
Jun 18, 2025
Updated
May 11, 2026
Reserved
Jun 18, 2025

Read the record on cve.org

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • cd7760e62c2ac8581f050b2d36501d1a60beaf83 to before cdb9a8da9b84800eb15506cd9363cf0cf059e677Affected
  • cd7760e62c2ac8581f050b2d36501d1a60beaf83 to before 1691a48aef0a82d1754b9853dae7e3f5cacdf70bAffected
  • cd7760e62c2ac8581f050b2d36501d1a60beaf83 to before d9eb37db6a28b59a95a3461450ee209654c5f95bAffected
  • cd7760e62c2ac8581f050b2d36501d1a60beaf83 to before 66689c5c02acd4d76c28498fe220998610aec61eAffected
  • cd7760e62c2ac8581f050b2d36501d1a60beaf83 to before dd649b49219a0388cc10fc40e4c2ea681566a780Affected
  • cd7760e62c2ac8581f050b2d36501d1a60beaf83 to before 552ba102a6898630a7d16887f29e606d6fabe508Affected
  • cd7760e62c2ac8581f050b2d36501d1a60beaf83 to before 864e280cb3a9a0f5212b16ef5057c4e692f7039dAffected
  • cd7760e62c2ac8581f050b2d36501d1a60beaf83 to before 15bc8966b6d3a5b9bfe4c9facfa02f2b69b1e5f0Affected
LinuxLinux
  • 3.13Affected
  • before 3.13Not affected
  • 4.9.328 through 4.9.*Not affected
  • 4.14.293 through 4.14.*Not affected
  • 4.19.258 through 4.19.*Not affected
  • 5.4.213 through 5.4.*Not affected
  • 5.10.142 through 5.10.*Not affected
  • 5.15.66 through 5.15.*Not affected
  • 5.19.8 through 5.19.*Not affected
  • 6.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.