wifi: cfg80211: clear wdev->cqm_config pointer on free
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: cfg80211: clear wdev->cqm_config pointer on free
When we free wdev->cqm_config when unregistering, we also need to clear out the pointer since the same wdev/netdev may get re-registered in another network namespace, then destroyed later, running this code again, which results in a double-free.
From the CVE record · Linux
The Linux kernel's cfg80211 code frees wdev->cqm_config during unregistering without clearing the pointer. If the same wireless device is re-registered in another network namespace and later destroyed, the pointer can be freed again. The input does not specify an attack path, authentication requirement, or user interaction.
Engineers running the Linux kernel should check for this issue; affected versions are not specified.