What’s Vulnerable › Vulnerabilities
CVE-2025-37941: ASoC: codecs: wcd937x: fix a potential memory leak in wcd937x_soc_codec_probe()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-05-20 · updated 2026-06-17
- Weakness: CWE-401
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.
Affected products
- Linux kernel: from 6.11 before 6.12.24; from 6.13 before 6.13.12; from 6.14 before 6.14.3 — fixed in 6.12.24, 6.13.12, 6.14.3
How to fix
Upgrade to a fixed version: Linux kernel 6.12.24, 6.13.12, 6.14.3. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/3e330acf4efd63876d673c046cd073a1d4ed57a8
- https://git.kernel.org/stable/c/aafb5325aca3e806b3ea3707402189263473d257
- https://git.kernel.org/stable/c/acadb2e2b3c5b9977a843a3a94fece9bdcf6aea1
- https://git.kernel.org/stable/c/b573e04116fd33b9143fa276bbab2f0afad0a1ae
Get alerted when CVE-2025-37941 or the next vulnerability affects your stack