From mboxrd@z Thu Jan 1 00:00:00 1970 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 B4B2382871 for ; Wed, 7 Aug 2024 15:26:34 +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=1723044394; cv=none; b=C4g48zKdryU+lp3h9ydB9kIJKiwUaxVs64qFN+UbHJmmM84Pa4P1ZzBtiA2eHrIz7hAhi2Ccq97werHtRa+Jqt9rzluAdFS72WPSyLjvh86asDwChgA+hX0JmTmlnqV7pyfQfqOhDtva8lXaSoMQLD/T/WcWwFOlgLtY3LZul8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723044394; c=relaxed/simple; bh=zKyEGH4bCpUfSmTv9LcV9sk8Ku+IXkcZkWbPp6YB4eY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mKNkI5WY3IGL1yw915wMj8RxiJyN0eU0smgHt/v+EPTLg2hOYi0peAugmRtk1hWqcst99n6OFYlWSHgmPwiGhJl1R0GH/RubEfI/FJ/VlLURdkJAuCyZp5/4HF7/yPGVMF9wBEfx4N1OUFTZGVsjNXEOjDPhCrgECjbVDiCqhKQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VPWOxT8S; 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="VPWOxT8S" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A218C32781; Wed, 7 Aug 2024 15:26:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723044394; bh=zKyEGH4bCpUfSmTv9LcV9sk8Ku+IXkcZkWbPp6YB4eY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VPWOxT8S8i8knuIPgyiNg2wJ+IGn2cIG3o+NAGDuJiqgAByg2W4s6kZekAC+FyI05 KFcqdOBRPo5RqHDDr1txxm/UgswJG+q9dGZb7B7drk+yJqGAEtblfX8zq7ZE0JBsbg OHi7BIsw7PgI9O/nmVeM27L8fui0g1GGtBkSTDwM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42237: firmware: cs_dsp: Validate payload length before processing block Date: Wed, 7 Aug 2024 17:14:43 +0200 Message-ID: <2024080740-CVE-2024-42237-eba4@gregkh> X-Mailer: git-send-email 2.46.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=2386; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zKyEGH4bCpUfSmTv9LcV9sk8Ku+IXkcZkWbPp6YB4eY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmb+xPqGGLlXrhFTUmWjLy+/EXuJeUbhZXxYT3MGTetF iw1E/PqiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIlEvGGYXyu9fct/Jpnp5xnu FWZs+Tm57VB7EMNcsdP51q988jv5LN9U8LW3FUfxGakAAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: firmware: cs_dsp: Validate payload length before processing block Move the payload length check in cs_dsp_load() and cs_dsp_coeff_load() to be done before the block is processed. The check that the length of a block payload does not exceed the number of remaining bytes in the firwmware file buffer was being done near the end of the loop iteration. However, some code before that check used the length field without validating it. The Linux kernel CVE team has assigned CVE-2024-42237 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit f6bc909e7673 and fixed in 6.1.100 with commit 259955eca9b7 Issue introduced in 5.16 with commit f6bc909e7673 and fixed in 6.6.41 with commit 3a9cd924aec1 Issue introduced in 5.16 with commit f6bc909e7673 and fixed in 6.9.10 with commit 71d9e313d8f7 Issue introduced in 5.16 with commit f6bc909e7673 and fixed in 6.10 with commit 6598afa9320b 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-2024-42237 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: drivers/firmware/cirrus/cs_dsp.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/259955eca9b7acf1299b1ac077d8cfbe12df35d8 https://git.kernel.org/stable/c/3a9cd924aec1288d675df721f244da4dd7e16cff https://git.kernel.org/stable/c/71d9e313d8f7e18c543a9c80506fe6b1eb1fe0c8 https://git.kernel.org/stable/c/6598afa9320b6ab13041616950ca5f8f938c0cf1