wifi: mac80211: count only matching reservations in reserved switch
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f · < 03525b632908b049f4d04cc8a71cdff2329589cf| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211: count only matching reservations in reserved switch
ieee80211_vif_use_reserved_switch() validates a replacement by counting assigned links on ctx->replace_ctx and treating reservations too broadly. A link can still be assigned to the old channel context while holding a reservation that belongs to a different replacement operation.
That can make the current replacement appear complete too early. If another link finalizes first, the function can free the WILL_BE_REPLACED chanctx while the unmatched link and driver still use it, leading to a use-after-free in later beacon generation.
Require an in-place reservation to point at the current replacement context, and require the reserved and assigned contexts to be the matching replacement pair, before counting or moving the link.
From the CVE record · Linux
The Linux kernel's mac80211 code can count a link's reservation for a different channel-context replacement as part of the current replacement. If another link finalizes first, the old context can be freed while still in use, causing a use-after-free during later beacon generation. The input does not specify attacker access requirements or user interaction.
Engineers running Linux kernels with mac80211 should check their versions against the vendor advisory; affected versions are not specified.