wifi: ath11k: fix memory leak in WMI firmware stats
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.1.426.4.76.5In the Linux kernel, the following vulnerability has been resolved:
wifi: ath11k: fix memory leak in WMI firmware stats
Memory allocated for firmware pdev, vdev and beacon statistics are not released during rmmod.
Fix it by calling ath11k_fw_stats_free() function before hardware unregister.
While at it, avoid calling ath11k_fw_stats_free() while processing the firmware stats received in the WMI event because the local list is getting spliced and reinitialised and hence there are no elements in the list after splicing.
Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1
From the CVE record · Linux
The Linux kernel's ath11k driver does not release memory allocated for firmware pdev, vdev, and beacon statistics when the module is removed. This causes a memory leak; the input does not describe an attacker-triggered path or specify network access, authentication, or user interaction requirements.
Engineers running Linux kernels with the ath11k Wi-Fi driver should check their deployments; affected versions are not specified.