lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025052038-CVE-2025-37941-1802@gregkh>
Date: Tue, 20 May 2025 17:58:30 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-37941: ASoC: codecs: wcd937x: fix a potential memory leak in wcd937x_soc_codec_probe()

From: Greg Kroah-Hartman <gregkh@...nel.org>

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.

The Linux kernel CVE team has assigned CVE-2025-37941 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 6.11 with commit 313e978df7fc38b9e949ac5933d0d9d56d5e8a9c and fixed in 6.12.24 with commit acadb2e2b3c5b9977a843a3a94fece9bdcf6aea1
	Issue introduced in 6.11 with commit 313e978df7fc38b9e949ac5933d0d9d56d5e8a9c and fixed in 6.13.12 with commit b573e04116fd33b9143fa276bbab2f0afad0a1ae
	Issue introduced in 6.11 with commit 313e978df7fc38b9e949ac5933d0d9d56d5e8a9c and fixed in 6.14.3 with commit aafb5325aca3e806b3ea3707402189263473d257
	Issue introduced in 6.11 with commit 313e978df7fc38b9e949ac5933d0d9d56d5e8a9c and fixed in 6.15-rc1 with commit 3e330acf4efd63876d673c046cd073a1d4ed57a8

Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2025-37941
will be updated if fixes are backported, please check that for the most
up to date information about this issue.


Affected files
==============

The file(s) affected by this issue are:
	sound/soc/codecs/wcd937x.c


Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	https://git.kernel.org/stable/c/acadb2e2b3c5b9977a843a3a94fece9bdcf6aea1
	https://git.kernel.org/stable/c/b573e04116fd33b9143fa276bbab2f0afad0a1ae
	https://git.kernel.org/stable/c/aafb5325aca3e806b3ea3707402189263473d257
	https://git.kernel.org/stable/c/3e330acf4efd63876d673c046cd073a1d4ed57a8

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ