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 D75D435893 for ; Tue, 20 May 2025 16:58:45 +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=1747760325; cv=none; b=UQZFwl4ZX3MYCet72hLrAhdOWRANFqfsgfTteDqFxF0oNny+btkYpfu0O+dELtlFhCD0amHBkMXYmVmZRYytDqojgLpVrDng7kdr5xaxlN7Cq/28u1Hg6XNVnzTok5kz1APIO7C8qh3TxxI+LZezpLg2mdA4ZsGUekPeDZnohBQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747760325; c=relaxed/simple; bh=7MFdICobH+m76ZNFUB/eCu7oUkpnI6k/dj3Y0gJuJrk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GsBn4Fh5oOlnK3dfJPYLdA1mVi8tasB0CYTtA2CZJPj6rCkSiw7CKIHi9bHz5aGh5/QRisMuBOu5heqJuQP1uuLR7lOJ8/SDzim207/mExfHVuEQthXShziaRvLjTlzkkBT6dtXDKti95hYnK7PDS3F/4LivFI86bJpJ03TZOvU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vqn9UjWL; 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="vqn9UjWL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12C9BC4CEEB; Tue, 20 May 2025 16:58:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747760325; bh=7MFdICobH+m76ZNFUB/eCu7oUkpnI6k/dj3Y0gJuJrk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vqn9UjWLYRluCfqwDtuHWWCZ6qlLb3xt/rY/9QEp4vPTr1SUiXBvfzzWlVyIBJ0PH R51jZmnXwFyVk59IhPAZy5NGoFgMwPXXmMSxdO9W5vY7biqptlPoKXox6ALdzJQqjA rYydYZMkaDWMf0+JqztRZ2dNc3+L87Nw5p1ycNbw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37979: ASoC: qcom: Fix sc7280 lpass potential buffer overflow Date: Tue, 20 May 2025 18:56:43 +0200 Message-ID: <2025052040-CVE-2025-37979-3ca4@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=2876; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+DL1270zSq7Y/1s0xD2Q3UhwjPuoh3/ukAQ05wtFhIc=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk6Wzw+siSsNuEN/ZB/Y500p53h3T6OX79jNS6ucm1mW 7nedMm5jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIsRXD/KqFLz1nd624Fad5 +OutQ7u/LQ//t4VhfsTdtg9mma3NtcysPw4UVeh+1CqpBAA= 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: qcom: Fix sc7280 lpass potential buffer overflow Case values introduced in commit 5f78e1fb7a3e ("ASoC: qcom: Add driver support for audioreach solution") cause out of bounds access in arrays of sc7280 driver data (e.g. in case of RX_CODEC_DMA_RX_0 in sc7280_snd_hw_params()). Redefine LPASS_MAX_PORTS to consider the maximum possible port id for q6dsp as sc7280 driver utilizes some of those values. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2025-37979 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 77d0ffef793da818741127f4905a3e3d45d05ac7 and fixed in 6.1.136 with commit d78888853eb53f47ae16cf3aa5d0444d0331b9f8 Issue introduced in 5.18 with commit 77d0ffef793da818741127f4905a3e3d45d05ac7 and fixed in 6.6.88 with commit a12c14577882b1f2b4cff0f86265682f16e97b0c Issue introduced in 5.18 with commit 77d0ffef793da818741127f4905a3e3d45d05ac7 and fixed in 6.12.25 with commit c0ce01e0ff8a0d61a7b089ab309cdc12bc527c39 Issue introduced in 5.18 with commit 77d0ffef793da818741127f4905a3e3d45d05ac7 and fixed in 6.14.4 with commit b807b7c81a6d066757a94af7b8fa5b6a37e4d0b3 Issue introduced in 5.18 with commit 77d0ffef793da818741127f4905a3e3d45d05ac7 and fixed in 6.15-rc3 with commit a31a4934b31faea76e735bab17e63d02fcd8e029 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-37979 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/qcom/lpass.h 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/d78888853eb53f47ae16cf3aa5d0444d0331b9f8 https://git.kernel.org/stable/c/a12c14577882b1f2b4cff0f86265682f16e97b0c https://git.kernel.org/stable/c/c0ce01e0ff8a0d61a7b089ab309cdc12bc527c39 https://git.kernel.org/stable/c/b807b7c81a6d066757a94af7b8fa5b6a37e4d0b3 https://git.kernel.org/stable/c/a31a4934b31faea76e735bab17e63d02fcd8e029