Bug 2368524 (CVE-2025-37941) - CVE-2025-37941 kernel: ASoC: codecs: wcd937x: fix a potential memory leak in wcd937x_soc_codec_probe()
Summary: CVE-2025-37941 kernel: ASoC: codecs: wcd937x: fix a potential memory leak in ...
Keywords:
Status: NEW
Alias: CVE-2025-37941
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-26 07:04 UTC by OSIDB Bzimport
Modified: 2025-06-11 12:14 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-26 07:04:06 UTC
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.

Comment 1 Avinash Hanwate 2025-05-26 11:39:29 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025052038-CVE-2025-37941-1802@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.