wifi: ath11k: fix memory leaks in beacon template setup
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath11k: fix memory leaks in beacon template setup
The functions ath11k_mac_setup_bcn_tmpl_ema() and ath11k_mac_setup_bcn_tmpl_mbssid() allocate memory for beacon templates but fail to free it when parameter setup returns an error.
Since beacon templates must be released during normal execution, they must also be released in the error handling paths to prevent memory leaks.
Fix this by using unified exit paths with proper cleanup in the respective error paths.
Compile tested only. Issue found using a prototype static analysis tool and code review.
From the CVE record · Linux
The ath11k Wi-Fi driver fails to free beacon template memory when parameter setup returns an error, causing a memory leak. The report does not establish whether an attacker can trigger the error or specify network access, authentication, or user-interaction requirements.
Engineers running the Linux kernel with the ath11k Wi-Fi driver should check their deployments; affected versions are not specified.