wifi: cfg80211: only group hidden BSSes with beacon entries
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4593c4cbe1c96b3995727dc42f6aa103f4ff5afc · < 86235be788094131912e9bd8412b358d91d99f49| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: cfg80211: only group hidden BSSes with beacon entries
When a probe response for an unknown BSS comes in, __cfg80211_bss_update() looks for an existing entry with the same BSSID and a hidden (zero-length or NUL-filled) SSID, and if it finds one it groups them, using the beacon IEs from the existing entry.
But that could find another entry without a beacon, if it was also from a probe response (with SSID), so there's a group without beacon elements.
If a beacon with a hidden SSID for that BSSID arrives later, cfg80211_combine_bsses() goes looking for the probe response entries that belong to it - i.e. entries with the same BSSID and channel that have no beacon IEs - and finds those two. They are already grouped with each other, so it hits its
WARN_ON_ONCE(bss->pub.hidden_beacon_bss) WARN_ON_ONCE(!list_empty(&bss->hidden_list))
which are there because an entry without beacon elements is not supposed to be part of a group yet.
Only combine entries when a beacon was already received, ones that are kept separate will be combined when a beacon arrives.
From the CVE record · Linux
The Linux kernel's cfg80211 Wi-Fi code can incorrectly group probe-response entries before receiving a beacon. If a hidden-SSID beacon for the same BSSID arrives later, this can trigger kernel warnings. The input does not specify authentication requirements, user interaction, or whether an attacker can trigger the sequence.
Engineers running Linux kernels with cfg80211 should check their versions; affected versions are not specified.