# CVE-2025-37941: ASoC: codecs: wcd937x: fix a potential memory leak in wcd937x_soc_codec_probe()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `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.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-05-20T15:58:18.275Z
- Modified: 2026-06-17T09:15:44.517Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ASoC: codecs: wcd937x: fix a potential memory leak in wcd937x_soc_codec_probe()

When snd_soc_dapm_new_controls() or snd_soc_dapm_add_routes() fails,
wcd937x_soc_codec_probe() returns without releasing 'wcd937x->clsh_info',
which is allocated by wcd_clsh_ctrl_alloc. Add wcd_clsh_ctrl_free()
to prevent potential memory leak.

(As written by CVE List.)

## Affected

- Linux Linux: from 313e978df7fc38b9e949ac5933d0d9d56d5e8a9c before acadb2e2b3c5b9977a843a3a94fece9bdcf6aea1; from 313e978df7fc38b9e949ac5933d0d9d56d5e8a9c before b573e04116fd33b9143fa276bbab2f0afad0a1ae; from 313e978df7fc38b9e949ac5933d0d9d56d5e8a9c before aafb5325aca3e806b3ea3707402189263473d257; from 313e978df7fc38b9e949ac5933d0d9d56d5e8a9c before 3e330acf4efd63876d673c046cd073a1d4ed57a8; 6.11 (not affected: before 6.11; from 6.12.24 up to 6.12.*; from 6.13.12 up to 6.13.*; from 6.14.3 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 6.11 before 6.12.24; from 6.13 before 6.13.12; from 6.14 before 6.14.3

## References

- <https://git.kernel.org/stable/c/acadb2e2b3c5b9977a843a3a94fece9bdcf6aea1> (patch)
- <https://git.kernel.org/stable/c/b573e04116fd33b9143fa276bbab2f0afad0a1ae> (patch)
- <https://git.kernel.org/stable/c/aafb5325aca3e806b3ea3707402189263473d257> (patch)
- <https://git.kernel.org/stable/c/3e330acf4efd63876d673c046cd073a1d4ed57a8> (patch)

## Sources

- CVE List: [CVE-2025-37941](https://www.cve.org/CVERecord?id=CVE-2025-37941), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-37941](https://nvd.nist.gov/vuln/detail/CVE-2025-37941), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-37941 · Whole record: https://cve.day/CVE-2025-37941.json · Rebuilt by cve.day 2026-11-25T22:58:58.298Z
