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 EDCA830DEC6 for ; Tue, 28 Oct 2025 11:51:02 +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=1761652263; cv=none; b=tZCaGECmV/r4c2v9n99ziYnqx7HO/nZt/I/ga3552Nnyz85s3XQlCCcWoONFx1wDj9VayBiOXwHhBHaemk0O8Xwjx62QyeOSmDMyW0ES3YiZf5TAP8GombsOtIWYf2kzeors4WvlclnKcOsb75GKVjABkJYuhZjbz/ftU+HJbLg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761652263; c=relaxed/simple; bh=DUCcKLVcjHeHpWS0BOd/jDNllrrPskIN0KI1/rrJ/wE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d9QP3x9UnonFHOLKlV3okso3cjT4cBdnJ67wRz9lmoVNDYlgRe2kkf25dBj5hGq09CMwGpqnG3gdHYkpuPGh2+XplnQRofeofn2clxdA6hX0EXVOa6MujBM0Hs60TxgKEG5ceHOuROTrE25E1FMJACb9bFOsYvO65SpPLgyRhcw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aUM3PueG; 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="aUM3PueG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00DF0C4CEF7; Tue, 28 Oct 2025 11:51:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761652262; bh=DUCcKLVcjHeHpWS0BOd/jDNllrrPskIN0KI1/rrJ/wE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=aUM3PueGsWY3WW2lTgwFuNrMn6H648yHSht2f+OJ26j8iPKVZ1Nb2VtxV6xF2gUjl BHz5qCg12WBDxoVB6SnG34PpDWEr5MXKOVCYNqyTYKUYUP+PCiNQV19pyqJDXVrO9p F6TwfcQjZOkUgFBJrbXUuJZ4tzBNWTV1L9B6OptM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40045: ASoC: codecs: wcd937x: set the comp soundwire port correctly Date: Tue, 28 Oct 2025 12:48:22 +0100 Message-ID: <2025102813-CVE-2025-40045-38d3@gregkh> X-Mailer: git-send-email 2.51.1 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=2208; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zNb4cwINCzItrHt3+drM+T1XothynbPb89LOrTu7g/A=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkMa2sD0ju/JG5OtVwSwpS1ycr86KLi+bNyah8flStp+ rbzfCFDRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykrJ5hnnWP2eUZNYI14tdZ pBLZZm5apsvUwTCHf8+Lx/4+Z5erWgedUnmvdOq81iYWAA== 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: set the comp soundwire port correctly For some reason we endup with setting soundwire port for HPHL_COMP and HPHR_COMP as zero, this can potentially result in a memory corruption due to accessing and setting -1 th element of port_map array. The Linux kernel CVE team has assigned CVE-2025-40045 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 82be8c62a38c6a44e64ecb29d7a9b5cb35c6cad4 and fixed in 6.12.53 with commit abcd537aae3b84c6d10ad147e99a204bcb56b234 Issue introduced in 6.11 with commit 82be8c62a38c6a44e64ecb29d7a9b5cb35c6cad4 and fixed in 6.17.3 with commit 1a1ca38392e7e896075afc8905ddaea525ed30f7 Issue introduced in 6.11 with commit 82be8c62a38c6a44e64ecb29d7a9b5cb35c6cad4 and fixed in 6.18-rc1 with commit 66a940b1bf48a7095162688332d725ba160154eb 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-40045 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/abcd537aae3b84c6d10ad147e99a204bcb56b234 https://git.kernel.org/stable/c/1a1ca38392e7e896075afc8905ddaea525ed30f7 https://git.kernel.org/stable/c/66a940b1bf48a7095162688332d725ba160154eb