wifi: mac80211: remove station if connection prep fails
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 81151ce462e533551f3284bfdb8e0f461c9220e6 · < 283fc9e44ff5b5ac967439b4951b80bd4299f4e4| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211: remove station if connection prep fails
If connection preparation fails for MLO connections, then the interface is completely reset to non-MLD. In this case, we must not keep the station since it's related to the link of the vif being removed. Delete an existing station. Any "new_sta" is already being removed, so that doesn't need changes.
This fixes a use-after-free/double-free in debugfs if that's enabled, because a vif going from MLD (and to MLD, but that's not relevant here) recreates its entire debugfs.
From the CVE record · Linux
A failed MLO connection preparation can leave a station associated with a removed interface link, causing a use-after-free or double-free in debugfs when debugfs is enabled. The input does not specify how an attacker could trigger this condition or whether access or user interaction is required.
Engineers running the Linux kernel with mac80211 and debugfs enabled should check their deployments; affected versions are not specified.