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 3D25F57334 for ; Sun, 28 Apr 2024 11:35:57 +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=1714304158; cv=none; b=u3BisuHSEeKlK5c8SiqyTgkb2EcYbF3L25NXtf4lQK0XhaMA9ZbdP+GkN/7norP9X5qmAjkT+OGQS53TJrM63/TVoL54lhlHCZMfA3WOSVxYwz5sZnoYyDI0q6KbjLp0qakCTSqkzRAgHfLd8t/e78wtQi34RQdKOYUA4BhyXVo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714304158; c=relaxed/simple; bh=ZeXSzzGTc9kH+nZipTliOaNwbXkA2hi/zBhUiVYOYAA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UWoAaJyRufTM5EsfIzHH4JK5XI1XntVMlPI41AfCYFx+9ORko7maVw0ryFHW58mOiW0lf/5wP9blu23VTLXs2v3aGbDT3nvBcTOZTmPXAwrDqKPY3qJNi6n8U9N0ZHQAj2NUAoWRqN6QK4WeikuxDofOYRYXO0TSIlL39BoGDN8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Y3sga/Mp; 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="Y3sga/Mp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58EFDC113CC; Sun, 28 Apr 2024 11:35:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714304157; bh=ZeXSzzGTc9kH+nZipTliOaNwbXkA2hi/zBhUiVYOYAA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Y3sga/Mpw5y2ztKujuearEgWGRyobMtIyeAsXbQdb1sBa4o8pekcKXRI56LncLdDX PE46/qx6hvA00jc5ILkQ7jTAwg3W/b3d6tn4KPMA9vI/+dxkuh3E4bYan7zUbXubHm WLcnstw4FfB8QG3XeKtTUJK+G+icFahz72MnPzK4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26927: ASoC: SOF: Add some bounds checking to firmware data Date: Sun, 28 Apr 2024 13:35:43 +0200 Message-ID: <2024042844-CVE-2024-26927-3374@gregkh> X-Mailer: git-send-email 2.44.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=2421; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZeXSzzGTc9kH+nZipTliOaNwbXkA2hi/zBhUiVYOYAA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGl6JhMDLzTtjg0q2Vh2b2JdN2P/eSPFJV13n9d3+Z5cU PnY0u1kRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk7juGueJ7O9d99dbv4+fj nex+PN9b4/6WtQyzWeTKPmowOe7hunRoa/29Ut5zZfpBAA== 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: ASoC: SOF: Add some bounds checking to firmware data Smatch complains about "head->full_size - head->header_size" can underflow. To some extent, we're always going to have to trust the firmware a bit. However, it's easy enough to add a check for negatives, and let's add a upper bounds check as well. The Linux kernel CVE team has assigned CVE-2024-26927 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit d2458baa799f and fixed in 6.1.83 with commit d133d67e7e72 Issue introduced in 5.19 with commit d2458baa799f and fixed in 6.6.23 with commit ced7df8b3c5c Issue introduced in 5.19 with commit d2458baa799f and fixed in 6.7.11 with commit 044e22066715 Issue introduced in 5.19 with commit d2458baa799f and fixed in 6.8.2 with commit 9eeb8e1231f6 Issue introduced in 5.19 with commit d2458baa799f and fixed in 6.9-rc1 with commit 98f681b0f84c 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-26927 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/sof/ipc3-loader.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/d133d67e7e724102d1e53009c4f88afaaf3e167c https://git.kernel.org/stable/c/ced7df8b3c5c4751244cad79011e86cf1f809153 https://git.kernel.org/stable/c/044e220667157fb9d59320341badec59cf45ba48 https://git.kernel.org/stable/c/9eeb8e1231f6450c574c1db979122e171a1813ab https://git.kernel.org/stable/c/98f681b0f84cfc3a1d83287b77697679e0398306