# CVE-2022-50418: wifi: ath11k: mhi: fix potential memory leak in ath11k_mhi_register()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-09-18T16:04:01.436Z
- Modified: 2026-08-15T13:17:36.037Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 6ac04bdc5edb418787ab2040b1f922c23464c750 before 72ef896e80b6ec7cdc1dd42577045f8e7c9c32b3; from 6ac04bdc5edb418787ab2040b1f922c23464c750 before 015ced9eb63b8b19cb725a1d592d150b60494ced; from 6ac04bdc5edb418787ab2040b1f922c23464c750 before 43e7c3505ec70db3d3c6458824d5fa40f62e3e7b; 5.17 (not affected: before 5.17; from 5.19.17 up to 5.19.*; from 6.0.3 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 5.6 before 5.19.17; from 6.0 before 6.0.3

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/72ef896e80b6ec7cdc1dd42577045f8e7c9c32b3> (patch)
- <https://git.kernel.org/stable/c/015ced9eb63b8b19cb725a1d592d150b60494ced> (patch)
- <https://git.kernel.org/stable/c/43e7c3505ec70db3d3c6458824d5fa40f62e3e7b> (patch)

## Sources

- CVE List: [CVE-2022-50418](https://www.cve.org/CVERecord?id=CVE-2022-50418), CVE Terms of Use, modified 2026-08-15
- NVD: [CVE-2022-50418](https://nvd.nist.gov/vuln/detail/CVE-2022-50418), Public domain, modified 2026-08-15

---

Page: https://cve.day/CVE-2022-50418 · Whole record: https://cve.day/CVE-2022-50418.json · Rebuilt by cve.day 2026-11-25T22:58:21.209Z
