wifi: cfg80211: don't filter by BSS type when removing stale entries
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0afd425b1b64251f19b5d8d8b49bf56fefbc643f · < 6d2fd26185678038ef2ea11dd4d2e6eccbf2dd25| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: cfg80211: don't filter by BSS type when removing stale entries
When an assoc AP switches to a channel that already has a BSS entry, cfg80211_update_assoc_bss_entry() removes that entry before rehashing the real one, since the two would otherwise collide in the BSS rbtree.
The lookup for that entry also required it to match the connection's BSS type, so an entry advertising e.g. the IBSS capability bit was left in place, and the following cfg80211_rehash_bss() then ran into it:
WARN_ON(!cmp)
Changing the type shouldn't really happen, but can be triggered by a rogue AP/device, so drop the check and remove any entries matching the comparison.
From the CVE record · Linux
Linux kernel cfg80211 can leave a stale BSS entry in place when an associated AP switches to a channel with an existing entry of a different BSS type. A rogue AP or device can trigger a kernel warning during the subsequent rehash. The input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with the affected wifi cfg80211 code should check their versions; affected versions are not specified.