CVE-2022-50418: wifi: ath11k: mhi: fix potential memory leak in ath11k_mhi_register()
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath11k: mhi: fix potential memory leak in ath11kmhiregister()
mhialloccontroller() allocates a memory space for mhictrl. When gets some error, mhictrl should be freed with mhifreecontroller(). But when ath11kmhireadaddrfromdt() fails, the function returns without calling mhifreecontroller(), which will lead to a memory leak.
We can fix it by calling mhifreecontroller() when ath11kmhireadaddrfromdt() fails.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2022-50418?
CVE-2022-50418 is classified as a high severity vulnerability due to its potential to cause memory leaks in the Linux kernel.
How do I fix CVE-2022-50418?
To fix CVE-2022-50418, ensure that you update to the latest stable version of the Linux kernel where this vulnerability has been patched.
What software is affected by CVE-2022-50418?
CVE-2022-50418 affects the Linux Kernel, specifically the ath11k driver for Wi-Fi.
What are the potential impacts of CVE-2022-50418?
The potential impact of CVE-2022-50418 includes system instability and degraded performance due to memory leaks.
Was CVE-2022-50418 publicly disclosed?
Yes, CVE-2022-50418 was publicly disclosed as part of the Linux kernel vulnerability management.