wifi: mac80211: Don't finalize CSA in IBSS mode if state is disconnected
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cd7760e62c2ac8581f050b2d36501d1a60beaf83 · < 552ba102a6898630a7d16887f29e606d6fabe508| No fix yet |
| Linux Linux |
|
|
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().
From the CVE record · Linux
In the Linux kernel's mac80211 Wi-Fi code, finalizing a channel switch announcement in IBSS mode while disconnected can encounter a NULL result and trigger a kernel warning. The input does not establish an attacker path, authentication requirement, or user-interaction requirement.
Engineers running Linux kernels with mac80211 IBSS support should check their versions; affected versions are not specified.