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 9ABEB3F8D0 for ; Fri, 17 May 2024 11:52:15 +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=1715946735; cv=none; b=C0BnF4aI2BhxHojJUrsfQN05kMKIRzn8CayUkU4QwT2GX2qp8HvNUeSM+yxXYH0brEbGjcSRSR2ABmoUMXmg67BdNCmwXLp74py7nhJ0tfHv4i30sjnpeQQKI1rwO1Q4Z2bh0XY/6p2sdAk2YACWSjbBVSVNlY/LL7uZAvQVAc8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715946735; c=relaxed/simple; bh=A8PYON/rd7oaD4xsKvl1e+6MRWNB65VDdoWT6XINHdE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eyZzUiOP2AcHo3AJwG/oqhGai1FAQDnzRO7LekaT5tmm8CKPgExQC8vj0oglYvLL0XNQNgipCZGCwliE1C5N8yjdupknGouVrA3YLFDRaUHmV5SL5y3EXfwVoFTbSf5/tz1is4bDH6t2Rhbu2Y1gS/RzB35PYJcA2KhK0vCwUco= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hhexq/sl; 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="hhexq/sl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A0C2C2BD10; Fri, 17 May 2024 11:52:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715946735; bh=A8PYON/rd7oaD4xsKvl1e+6MRWNB65VDdoWT6XINHdE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hhexq/slVVTh78dO7PIYWRsr6BAXYdaWCWrl0NvF6QWoAZi4swOYdtqXSdW5m7Pu5 o59slWINvmQPuYlFDZnC8/B3kCy/8/4w8ClBQ3klyG513xojeRYosdGq14htF7YMBL fhYsOsJiWwLUy0qoGpHJGjWnbawjiL+cuJew2ErE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27409: dmaengine: dw-edma: HDMA: Add sync read before starting the DMA transfer in remote setup Date: Fri, 17 May 2024 13:52:01 +0200 Message-ID: <2024051701-CVE-2024-27409-f797@gregkh> X-Mailer: git-send-email 2.45.1 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=2175; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=A8PYON/rd7oaD4xsKvl1e+6MRWNB65VDdoWT6XINHdE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnuLg+n/3334LFJ+OnEPQ9tn/+dl2F7d/4J75vmPfXzr X7w60773xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATiZVimF9wXvTdp/0Hvc/Y KF85Ynv2x5oXC/YzzJUQ3XwmV0v1q3Lm0tz5gY3hYktnnAYA 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: dmaengine: dw-edma: HDMA: Add sync read before starting the DMA transfer in remote setup The Linked list element and pointer are not stored in the same memory as the HDMA controller register. If the doorbell register is toggled before the full write of the linked list a race condition error will occur. In remote setup we can only use a readl to the memory to assure the full write has occurred. The Linux kernel CVE team has assigned CVE-2024-27409 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit e74c39573d35 and fixed in 6.6.21 with commit 227ef58a9b0c Issue introduced in 6.5 with commit e74c39573d35 and fixed in 6.7.9 with commit 17be6f5cb223 Issue introduced in 6.5 with commit e74c39573d35 and fixed in 6.8 with commit 712a92a48158 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-27409 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/dma/dw-edma/dw-hdma-v0-core.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/227ef58a9b0c372efba422e8886a8015a1509eba https://git.kernel.org/stable/c/17be6f5cb223f22e4733ed8fe8b2247cbb677716 https://git.kernel.org/stable/c/712a92a48158e02155b4b6b21e03a817f78c9b7e