CVE-2025-37941

MEDIUM

Linux Kernel - Use-After-Free in wcd937x_soc_codec_probe

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 5.5
EPSS 0.0016
EPSS Percentile 5.4%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-401
Status published
Products (14)
linux/Kernel 6.11.0 - 6.12.24linux
linux/Kernel 6.13.0 - 6.13.12linux
linux/Kernel 6.14.0 - 6.14.3linux
Linux/Linux < 6.11
Linux/Linux 313e978df7fc38b9e949ac5933d0d9d56d5e8a9c - 3e330acf4efd63876d673c046cd073a1d4ed57a8
Linux/Linux 313e978df7fc38b9e949ac5933d0d9d56d5e8a9c - aafb5325aca3e806b3ea3707402189263473d257
Linux/Linux 313e978df7fc38b9e949ac5933d0d9d56d5e8a9c - acadb2e2b3c5b9977a843a3a94fece9bdcf6aea1
Linux/Linux 313e978df7fc38b9e949ac5933d0d9d56d5e8a9c - b573e04116fd33b9143fa276bbab2f0afad0a1ae
Linux/Linux 6.11
Linux/Linux 6.12.24 - 6.12.*
... and 4 more
Published May 20, 2025
Tracked Since Feb 18, 2026