Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1666A242D76 for ; Tue, 20 May 2025 15:58:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747756731; cv=none; b=mIwEQGc49Aytgtd16CKsOW9mRYfyB4tF4vnNY8tntgGVwk0PnCx/j4D4F8HqqAHSa8r9cEebkr0GEiZhPgbywdzeU/NMNuH06Tp1s9M4fkEAvYw/206EYdn/kpCQWLAzPXUxSuTmWRg4PDM15yFv/KwhGSzT8ZnBFeTNSpG8+HA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747756731; c=relaxed/simple; bh=19EFdohg6AmjD/BjlNjm3c+UXxPzJtoFwAN/zeg+RU8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IvsuQaYvja+T0GwnfpWiTukUU+pT9sZgATw1nInZbicsCQ0eOekYTkQbL1IW8Chv8DK3uaDHFqqALIpzuIp7+28DyqJvqkgaELyOWCboUIJL6v1+juceT42zMwSJYsOYUYtpkWHIXeoLIDccwa6Q6vUPR6xba+r6OC+63P80bEQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=w2LZHoz+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="w2LZHoz+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BDC4C4CEE9; Tue, 20 May 2025 15:58:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747756730; bh=19EFdohg6AmjD/BjlNjm3c+UXxPzJtoFwAN/zeg+RU8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=w2LZHoz+L4QqxyFY6OlH/kCFA1vOh2L8ULHCTfSCLPUVl1zHPGTEthW2lVyYdfcD3 whiKGBcZxw2wrPmSB01Cp2RFP8A5UyQpCZb9sgKENblW3BjRwfot608GozRwPvE42s Vu6hsdaiU4nYOHI6aJ3KAvJimAsqNcwDSxEZwlMs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37941: ASoC: codecs: wcd937x: fix a potential memory leak in wcd937x_soc_codec_probe() Date: Tue, 20 May 2025 17:58:30 +0200 Message-ID: <2025052038-CVE-2025-37941-1802@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2498; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=th13u+1s1/j0WGd1+CNJXUb6/uJBvRdpun2Yxz8OExg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk6y9btNf7zSozj8uTWr98WRVewuG0XPLHEhu/G6s7/z H0qlzv1OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAieeUM8wvELE+fUZBKmWbt 9vx/+LfqUhYuaYb5KRM+PlfNyPiRHFXl/GaJ/O8F8e0NAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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