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 A206578C92 for ; Wed, 7 Aug 2024 15:26:37 +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=1723044397; cv=none; b=m+PI9QOTUbc37J4qe6rpvaAsSM9PKBu/ExjOAu9EqkILCan6B7IZ4gpz+LtBxCAa8dnIdo3McbR44fXqtrGCTU6HUKWXkAlNQ/NH1CV8I1u4ImE1iUu1ZbsCbyYdWWnQqEN2zgKhGC94wr+vqQp9aDD3f+t/1Am247ENbBlh+Dw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723044397; c=relaxed/simple; bh=ouDo2W+7pXf2Nq4BlhDsU2pA1ULgxi9Qv528457qcxM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sDwDDFc4qc820UlODMMqWpbRUe0UVpo95m3i1ncImLqEwFEWMC/ld2jaZ1VZRK4AfaO5+gRsPo1rv1eAhJX/jtLhP8jayBS1a8PpJvK7Eqin4VFg7BC7oYM4+6Ds4o5iZZ6ndVY3KekUKNiwARgkK7Z57y1TjkMbBzbE2V6yAyo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MmMNbqoU; 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="MmMNbqoU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3B93C32781; Wed, 7 Aug 2024 15:26:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723044397; bh=ouDo2W+7pXf2Nq4BlhDsU2pA1ULgxi9Qv528457qcxM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=MmMNbqoUCteiWdsXA19ZiehdqdLwkSawExO7Bkv8QkFlvJia+fB6S+3EBDdx8yjdo jyQ5SPu+hl3nVltoDy7WgO1rNHcOhIinT28JAHGwwm0ZG5pwGYAcYNGWnJmiW+1VuO uAoxrOv+Fg/766GsWqTDZR0o7E9l3yIAEa0PLu4Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42238: firmware: cs_dsp: Return error if block header overflows file Date: Wed, 7 Aug 2024 17:14:44 +0200 Message-ID: <2024080740-CVE-2024-42238-a5fd@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=2376; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ouDo2W+7pXf2Nq4BlhDsU2pA1ULgxi9Qv528457qcxM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmb+xPUlp/a9dKW9/CabVGB/veXlT/+0sAT38+umeXIJ v7hWrFVRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEuJVhwbQ/fPMuaDGkOK3z sKiTZJ548nvTYob5ObksS9bzvUniWhX84rzFzX3xc97NBgA= 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: Return error if block header overflows file Return an error from cs_dsp_power_up() if a block header is longer than the amount of data left in the file. The previous code in cs_dsp_load() and cs_dsp_load_coeff() would loop while there was enough data left in the file for a valid region. This protected against overrunning the end of the file data, but it didn't abort the file processing with an error. The Linux kernel CVE team has assigned CVE-2024-42238 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit f6bc909e7673 and fixed in 6.1.100 with commit b8be70566b33 Issue introduced in 5.16 with commit f6bc909e7673 and fixed in 6.6.41 with commit 90ab191b7d18 Issue introduced in 5.16 with commit f6bc909e7673 and fixed in 6.9.10 with commit 6eabd2338380 Issue introduced in 5.16 with commit f6bc909e7673 and fixed in 6.10 with commit 959fe01e85b7 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-42238 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/b8be70566b33abbd0180105070b4c67cfef8c44f https://git.kernel.org/stable/c/90ab191b7d181057d71234e8632e06b5844ac38e https://git.kernel.org/stable/c/6eabd23383805725eff416c203688b7a390d4153 https://git.kernel.org/stable/c/959fe01e85b7241e3ec305d657febbe82da16a02