wifi: mac80211: ibss: wait for in-flight TX on disconnect
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.160, 6.12.111, 6.18.53
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: ibss: wait for in-flight TX on disconnect While leaving an IBSS in ieee80211_ibss_disconnect() mac80211 flushes stations, turns the carrier off and immediately tells the driver to leave as well. While there may be synchronize_net() in station flush and in this code later, packets can still be transmitted due to cross-CPU race conditions after carrier off is set. Therefore, it's possible for a race to happen where a TX to the driver occurs while or after telling it to leave the IBSS. This can be confusing to drivers, and in the case of iwlwifi leads to an attempt to use invalid queues. Move netif_carrier_off() to occur before sta_info_flush() during IBSS disconnect, and add synchronize_net() if flushing didn't, so that the synchronize_net() always happens between turning the carrier off and telling the driver, avoiding this race.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 86a2ea4134b48f6371103cfceb521bf2d2bf76cd · fixed in 8e4a07ed82bae5d13525770880dc6dfd27f9bccd; From 86a2ea4134b48f6371103cfceb521bf2d2bf76cd · fixed in 20a3fb5e1a95caa34896853ca17a50d21c754969; From 86a2ea4134b48f6371103cfceb521bf2d2bf76cd · fixed in b3451e6971248250312ad32dd7f63cc9f0a925f5; From 86a2ea4134b48f6371103cfceb521bf2d2bf76cd · fixed in d0e69d9afa59b93c30294eba89b1f15f69e91105
- Linux Linux
3.3
- KernelLinux
From 3.3.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.111; From 6.13.0 · fixed in 6.18.53