CVE-2025-37941
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.20% (higher than 10% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 6.11 before 6.12.24, from 6.13 before 6.13.12, from 6.14 before 6.14.3NVD

Classification

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ASoC: códecs: wcd937x: se corrige una posible pérdida de memoria en wcd937x_soc_codec_probe(). Cuando fallan snd_soc_dapm_new_controls() o snd_soc_dapm_add_routes(), wcd937x_soc_codec_probe() regresa sin liberar 'wcd937x->clsh_info', que está asignado por wcd_clsh_ctrl_alloc. Se ha añadido wcd_clsh_ctrl_free() para evitar posibles pérdidas de memoria.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-37941 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-37941 changed 2026-06-17Public domain