CVE-2025-37941

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

published May 20, 2025

CVSS
—
EPSS
0%
Percentile
9.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00201 · 9.5th percentile
Published
2025-05-20T15:58Z
EPSS history
Timeline
  • 20 MAY 15:58Z
    ASoC: codecs: wcd937x: fix a potential memory leak in wcd937x_soc_codec_probe()
    cvelistv5