CVE-2022-50418

wifi: ath11k: mhi: fix potential memory leak in ath11k_mhi_register()

State
Published
Severity
5.5 Medium
Published
Sep 18, 2025
Updated
Aug 15, 2026
Reserved
Sep 17, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

  • CWE-401 Missing Release of Memory after Effective Lifetime

Affected Products

ProductVersions
LinuxLinux
  • 6ac04bdc5edb418787ab2040b1f922c23464c750 to before 72ef896e80b6ec7cdc1dd42577045f8e7c9c32b3Affected
  • 6ac04bdc5edb418787ab2040b1f922c23464c750 to before 015ced9eb63b8b19cb725a1d592d150b60494cedAffected
  • 6ac04bdc5edb418787ab2040b1f922c23464c750 to before 43e7c3505ec70db3d3c6458824d5fa40f62e3e7bAffected
LinuxLinux
  • 5.17Affected
  • before 5.17Not affected
  • 5.19.17 through 5.19.*Not affected
  • 6.0.3 through 6.0.*Not affected
  • 6.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.