wifi: cfg80211: undo netns switch if renaming the wiphy fails
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.547.2.87.3In the Linux kernel, the following vulnerability has been resolved:
wifi: cfg80211: undo netns switch if renaming the wiphy fails
Once all the interfaces have been moved, cfg80211_switch_netns() moves the wiphy itself by setting its network namespace and then renaming it, which makes sysfs move it. The rename can fail (but only on allocation failures), leaving things mixed up and hitting the warning there.
Ignoring it isn't great, undo the move and let the change fail in this case. If undo fails then WARN, then things would again be stuck in two different network namespaces.
From the CVE record · Linux
A wiphy rename can fail during a cfg80211 network-namespace switch if allocation fails, leaving the wiphy and its interfaces in different namespaces and triggering a warning. The input does not describe an attacker path, authentication requirements, or user interaction.
Teams running the Linux kernel should check their versions; affected versions are not specified in the input.