wifi: nl80211: reject iftype change with mesh ID change
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: nl80211: reject iftype change with mesh ID change
It's currently possible to change the mesh ID when the interface isn't yet in mesh mode, at the same time as changing it into mesh mode. This leads to an overwrite of data in the wdev->u union for the interface type it currently has, causing cfg80211_change_iface() to do wrong things when switching.
We could probably allow setting an interface to mesh while setting the mesh ID at the same time by doing a different order of operations here, but realistically there's no userspace that's going to do this, so just disallow changes in iftype when setting mesh ID.
From the CVE record · Linux
The Linux kernel's nl80211 component can overwrite interface-type data when a mesh ID is set at the same time an interface is switched into mesh mode. An attacker who can make this interface configuration change could cause cfg80211_change_iface() to behave incorrectly; the input does not specify authentication requirements or user interaction.
Engineers running the Linux kernel should check their versions for this issue; affected versions are not specified.