Linux: wifi: cfg80211: don't filter by BSS type when removing stale entries
What fixes it
- 6ef87a853327434ae1cd9c5a2c27a557fb4047fcLinuxCVE List
- 1380ee3a202dbb9f8e8b3c3b87eb410450d57799LinuxCVE List
- 65fdb973bd905bc3f5cb045a04c1828f2d2a7e24LinuxCVE List
- 64e23a36d8f04811372365b44cfca325f8e0f4bbLinuxCVE List
- 6d2fd26185678038ef2ea11dd4d2e6eccbf2dd25LinuxCVE List
- 0aa44982125c86b47961be5ac1c82eddab8080f3LinuxCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
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.
Text from CVE List
Affected versions 18
- Linuxaffected: 0afd425b1b64251f19b5d8d8b49bf56fefbc643f before 6ef87a853327434ae1cd9c5a2c27a557fb4047fcCVE List
- Linuxaffected: 0afd425b1b64251f19b5d8d8b49bf56fefbc643f before 1380ee3a202dbb9f8e8b3c3b87eb410450d57799CVE List
- Linuxaffected: 0afd425b1b64251f19b5d8d8b49bf56fefbc643f before fb445ec7480da5d2b82bf681e3b4313603722729CVE List
- Linuxaffected: 0afd425b1b64251f19b5d8d8b49bf56fefbc643f before 65fdb973bd905bc3f5cb045a04c1828f2d2a7e24CVE List
- Linuxaffected: 0afd425b1b64251f19b5d8d8b49bf56fefbc643f before 64e23a36d8f04811372365b44cfca325f8e0f4bbCVE List
- Linuxaffected: 0afd425b1b64251f19b5d8d8b49bf56fefbc643f before 6d2fd26185678038ef2ea11dd4d2e6eccbf2dd25CVE List
- Linuxaffected: 0afd425b1b64251f19b5d8d8b49bf56fefbc643f before 0aa44982125c86b47961be5ac1c82eddab8080f3CVE List
- Linuxaffected: 0afd425b1b64251f19b5d8d8b49bf56fefbc643f before b377e1000d963e7182a987082b4b06580bd7ac84CVE List
- Linuxaffected: 5.4CVE List
- Linuxunaffected: all versions before 5.4CVE List
- Linuxunaffected: 5.10.271 through 5.10.*CVE List
- Linuxunaffected: 5.15.222 through 5.15.*CVE List
- Linuxunaffected: 6.1.189 through 6.1.*CVE List
- Linuxunaffected: 6.6.158 through 6.6.*CVE List
- Linuxunaffected: 6.12.112 through 6.12.*CVE List
- Linuxunaffected: 6.18.54 through 6.18.*CVE List
- Linuxunaffected: 7.2.8 through 7.2.*CVE List
- Linuxunaffected: 7.3CVE List
References 8
- git.kernel.org/stable/c/6ef87a853327434ae1cd9c5a2c27a557fb4047fcReferencevia CVE List
- git.kernel.org/stable/c/1380ee3a202dbb9f8e8b3c3b87eb410450d57799Referencevia CVE List
- git.kernel.org/stable/c/fb445ec7480da5d2b82bf681e3b4313603722729Referencevia CVE List
- git.kernel.org/stable/c/65fdb973bd905bc3f5cb045a04c1828f2d2a7e24Referencevia CVE List
- git.kernel.org/stable/c/64e23a36d8f04811372365b44cfca325f8e0f4bbReferencevia CVE List
- git.kernel.org/stable/c/6d2fd26185678038ef2ea11dd4d2e6eccbf2dd25Referencevia CVE List
- git.kernel.org/stable/c/0aa44982125c86b47961be5ac1c82eddab8080f3Referencevia CVE List
- git.kernel.org/stable/c/b377e1000d963e7182a987082b4b06580bd7ac84Referencevia CVE List