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 1625616EB66 for ; Fri, 12 Jul 2024 12:33:04 +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=1720787585; cv=none; b=Syu+q2HNdgZUOGrgTIxHVq0zW25Wmg5VGiDljbxFP3cQHJbQreuX9s5jcc5f7DtGQZtAHr98RMjJlgNToQ/5TwjP6A45Xt9RDrd00nNPz2Kp2ZqczZzTP/I0xTNaAynWoeBAp/vPe1V0xoM4nEvTcw/dWHQxTz+vZp9wT2CwtuQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720787585; c=relaxed/simple; bh=SOu6UgSx45GNNKNFjiY/FOncffirpIA0bWY2Lf0p+Z0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dMthw7YKhvbzfA2pDt3AxRS06npzMJLN3PGp+UmvIYtDlmKp7qjppCJQ1+mxPhxLrvsTmKMbCy+OEHQ4PAiMgCtgkh0fYPhj2FGXllzFofqWKZ26xoxdIUAsKa6J0QWPbzjNqIwJcXz9IbKYfpP+3cO95UPN3w/VaSLyeseoqnc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=I0Z2W+dY; 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="I0Z2W+dY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 545BEC32782; Fri, 12 Jul 2024 12:33:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720787584; bh=SOu6UgSx45GNNKNFjiY/FOncffirpIA0bWY2Lf0p+Z0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=I0Z2W+dYk+U/LmQFwe/efMPter3SHvXXafVpwHlswl1nejctxVf1Rh6b2Zp3suTt9 4rjMweBjQg0hhbTQ1Y7TLmdIXijYnxjP+IFWWG8fzEedh8jDyvEb0H+BCZKPnOwH6t 98J/ItU/PtnfiJujNBWEaAiI3dzb7mpiiN7Y3fLg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40963: mips: bmips: BCM6358: make sure CBR is correctly set Date: Fri, 12 Jul 2024 14:32:39 +0200 Message-ID: <2024071226-CVE-2024-40963-6639@gregkh> X-Mailer: git-send-email 2.45.2 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=3021; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SOu6UgSx45GNNKNFjiY/FOncffirpIA0bWY2Lf0p+Z0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkTlaKmROQsc3S2uRtlMMtx3YKQBWon639OOnZoepxmH 3PipgTJjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjInO0M82u8hcqKN02xbf63 SrNKfK9as8Xhlwzz0xcfmcJ5YMMFb8F58j6VC44+963+BwA= 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: mips: bmips: BCM6358: make sure CBR is correctly set It was discovered that some device have CBR address set to 0 causing kernel panic when arch_sync_dma_for_cpu_all is called. This was notice in situation where the system is booted from TP1 and BMIPS_GET_CBR() returns 0 instead of a valid address and !!(read_c0_brcm_cmt_local() & (1 << 31)); not failing. The current check whether RAC flush should be disabled or not are not enough hence lets check if CBR is a valid address or not. The Linux kernel CVE team has assigned CVE-2024-40963 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4.240 with commit d65de5ee8b72 and fixed in 5.4.279 with commit 10afe5f7d30f Issue introduced in 5.10.177 with commit 47a449ec09b4 and fixed in 5.10.221 with commit 36d771ce6028 Issue introduced in 5.15.106 with commit 65b723644294 and fixed in 5.15.162 with commit 89167072fd24 Issue introduced in 6.1.23 with commit 2cdbcff99f15 and fixed in 6.1.96 with commit 6c0f6ccd9391 Issue introduced in 6.3 with commit ab327f8acdf8 and fixed in 6.6.36 with commit 2cd4854ef14a Issue introduced in 6.3 with commit ab327f8acdf8 and fixed in 6.9.7 with commit da895fd6da43 Issue introduced in 6.3 with commit ab327f8acdf8 and fixed in 6.10-rc5 with commit ce5cdd3b0521 Issue introduced in 6.2.10 with commit 288c96aa5b55 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-40963 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: arch/mips/bmips/setup.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/10afe5f7d30f6fe50c2b1177549d0e04921fc373 https://git.kernel.org/stable/c/36d771ce6028b886e18a4a8956a5d23688e4e13d https://git.kernel.org/stable/c/89167072fd249e5f23ae2f8093f87da5925cef27 https://git.kernel.org/stable/c/6c0f6ccd939166f56a904c792d7fcadae43b9085 https://git.kernel.org/stable/c/2cd4854ef14a487bcfb76c7980675980cad27b52 https://git.kernel.org/stable/c/da895fd6da438af8d9326b8f02d715a9c76c3b5b https://git.kernel.org/stable/c/ce5cdd3b05216b704a704f466fb4c2dff3778caf