CVE Database›Document archive›CVE-2025-37941

CVE-2025-37941

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

Loading…

Severity

Unknown

Red Hat Product Security

—

CVSS

Review impact separately from score.

Published · May 20, 2025

Updated · June 30, 2026

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.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CWE not specified