wifi: ath11k: fix warning when unbinding
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d5c65159f2895379e11ca13f62feabe93278985d · < 40aa3c2b0cb8e34e0576fc94cc70e4e33db03c0a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath11k: fix warning when unbinding
If there is an error during some initialization related to firmware, the buffers dp->tx_ring[i].tx_status are released. However this is released again when the device is unbinded (ath11k_pci), and we get: WARNING: CPU: 0 PID: 6231 at mm/slub.c:4368 free_large_kmalloc+0x57/0x90 Call Trace: free_large_kmalloc ath11k_dp_free ath11k_core_deinit ath11k_pci_remove ...
The issue is always reproducible from a VM because the MSI addressing initialization is failing.
In order to fix the issue, just set the buffers to NULL after releasing in order to avoid the double free.
From the CVE record · Linux
The ath11k Wi-Fi driver can free a transmit-status buffer twice if firmware-related initialization fails and the device is then unbound. This produces a kernel warning; the input does not establish an attacker path or authentication requirements.
Engineers running Linux kernels with the ath11k driver should check whether their kernel includes the fix; affected versions are not specified.