wifi: ath11k: mhi: fix potential memory leak in ath11k_mhi_register()
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 |
|
|
5.19.176.0.36.1In the Linux kernel, the following vulnerability has been resolved:
wifi: ath11k: mhi: fix potential memory leak in ath11k_mhi_register()
mhi_alloc_controller() allocates a memory space for mhi_ctrl. When gets some error, mhi_ctrl should be freed with mhi_free_controller(). But when ath11k_mhi_read_addr_from_dt() fails, the function returns without calling mhi_free_controller(), which will lead to a memory leak.
We can fix it by calling mhi_free_controller() when ath11k_mhi_read_addr_from_dt() fails.
From the CVE record · Linux
The Linux kernel’s ath11k MHI registration function can leak controller memory when reading an address from the device tree fails. The input does not establish whether an attacker can trigger this failure or specify access or user-interaction requirements.
Engineers running the Linux kernel with ath11k support should check their deployments; affected versions are not specified.