wifi: mac80211: fix use-after-free in chanctx code
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f · < b79110f2bf6022e60e590d2e094728a8eec3e79e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211: fix use-after-free in chanctx code
In ieee80211_vif_use_reserved_context(), when we have an old context and the new context's replace_state is set to IEEE80211_CHANCTX_REPLACE_NONE, we free the old context in ieee80211_vif_use_reserved_reassign(). Therefore, we cannot check the old_ctx anymore, so we should set it to NULL after this point.
However, since the new_ctx replace state is clearly not IEEE80211_CHANCTX_REPLACES_OTHER, we're not going to do anything else in this function and can just return to avoid accessing the freed old_ctx.
From the CVE record · Linux
The Linux kernel's mac80211 channel-context code can access an old context after freeing it. The input does not specify what an attacker could do with this flaw or whether exploitation requires network access, local access, authentication, or user interaction.
Anyone running a Linux kernel with mac80211 should check whether their kernel includes the fix; affected versions are not specified.