wifi: mac80211: fix memory leak in ieee80211_register_hw()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 09b4a4faf9d037990ac4f8110dd944b27b42d5df · < bdc0b8bfdc142439d6708b072e8159eb515ee7b0| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211: fix memory leak in ieee80211_register_hw()
If kmemdup() fails while copying supported band structures, the error path jumps to fail_rate. This skips rate_control_deinitialize() and leaks the initialized local->rate_ctrl.
Fix this by adding a fail_band label that shares the rate-control cleanup path before falling through to the remaining teardown.
The bug was first flagged by an experimental analysis tool we are developing for kernel memory-management bugs while analyzing v6.13-rc1. The tool is still under development and is not yet publicly available. Manual inspection confirms that the bug is still present in v7.1-rc7.
An x86_64 allyesconfig build showed no new warnings. As we do not have a suitable mac80211 device/driver combination to test with, no runtime testing was able to be performed.
From the CVE record · Linux
In the Linux kernel’s mac80211 code, a failed memory allocation while copying supported band structures can skip rate-control cleanup and leak memory. The input does not describe how an attacker could trigger the failure or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with mac80211 should check their versions; the bug was observed in v6.13-rc1 and was still present in v7.1-rc7.