wifi: mac80211_hwsim: don't hand frames to mac80211 while stopping
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7882513bacb176ab4aacceefdd035ca9479da4fb · < 87840d4a3a21b1c19b867a80e16ba69dff284de2| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211_hwsim: don't hand frames to mac80211 while stopping
The code checks ->started for frames coming from wmediumd, but the radio can be stopped after the check and before frame delivery, causing mac80211 to hit the WARN_ON(!local->started).
Expand the mutex for this case and synchronise against it when the radio is stopped to avoid being able to hit the warning with hwsim.
Drop the error print that would've complicated the error path, it only triggers for allocation failures (already noisy) and malformed frames anyway.
From the CVE record · Linux
In the Linux kernel, mac80211_hwsim can deliver a frame from wmediumd after a radio has stopped, triggering a warning in mac80211. The input does not establish whether an attacker can trigger this or what access or interaction would be required.
Engineers running Linux kernels that use mac80211_hwsim should check their exposure; affected versions were not specified.