wifi: mac80211: mesh: release the channel if start fails
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2b5e19677592c167d012c2d129407f39d2bdeb8d · < ae97fff6495a8764bc0ef281cfe5444f701e527f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211: mesh: release the channel if start fails
ieee80211_join_mesh() acquires a channel context and then calls ieee80211_start_mesh(), which can fail. In that case, the chanctx isn't released then interface removal will attempt to unassign it after it's removed from the driver, hitting:
wlan0: Failed check-sdata-in-driver check, flags: 0x0 WARNING: net/mac80211/driver-ops.c:366 at drv_unassign_vif_chanctx ieee80211_assign_link_chanctx __ieee80211_link_release_channel ieee80211_link_release_channel ieee80211_teardown_sdata unregister_netdevice_many_notify _cfg80211_unregister_wdev ieee80211_remove_interfaces ieee80211_unregister_hw mac80211_hwsim_del_radio hwsim_exit_net
Correctly release the channel on start failures.
From the CVE record · Linux
In the Linux kernel's mac80211 mesh code, a failed mesh start can leave a channel context allocated. Subsequent interface removal can trigger a driver-operation warning. The input does not describe an attacker, access requirements, or user interaction.
Engineers running Linux kernels that use mac80211 mesh should check; affected versions are not specified.