| From bippy-1.2.0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@kernel.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2025-37941: ASoC: codecs: wcd937x: fix a potential memory leak in wcd937x_soc_codec_probe() |
| |
| 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 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 |