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 08B263E49C for ; Fri, 17 May 2024 11:52:07 +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=1715946728; cv=none; b=SjTAD5aXqmgUu6ymg/buwbkQjdc2jFJxQi7iIimXybN5VNGqlAf8myUUf0bQG5AWOlPUOcILVDWF5kwVUg9w4Ghr+KtTFX320nh91yzwK1GCgVp3d8zODrKZCDVHkIt6CsOfluYFWFDhOIWYc4mmoAndp3MPBGZx+dvcIy9TnbU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715946728; c=relaxed/simple; bh=nxuwXFISJOuFfY9farIJeson0V1i2/tjrb3bpYeZ750=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RBhuc371CpM8EBIPQwg/Y0AhOT0Q7c8elm7aTYvxEOKiSQZJeVi9tCgIezgyGII4+AHmdcfB4oFD7meufrxC+E0BVq1snEOJkFb4rEATfghZwWtqBmA0eYzTYAzj6/lzxc1Li3RfJqqtRAImoA+DcuaCeFg88OgDaqPadA6VhRA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=u4FY4j7T; 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="u4FY4j7T" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25B49C2BD10; Fri, 17 May 2024 11:52:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715946727; bh=nxuwXFISJOuFfY9farIJeson0V1i2/tjrb3bpYeZ750=; h=From:To:Cc:Subject:Date:Reply-to:From; b=u4FY4j7Tw1RqSDT3A6TtRE6lEaZzUTWX+n11PfKMUZK27A9DOax3K2Me9rogDGUAq XoWU4H1wMMgF6tVHkuRtjTKREEzJ9Hqq+9a/jaIbK93szGBghKPry7prpbE8Ky4tN4 wGsSyneKS4hPiagSxKTYWJ4IVTVK6lFc8C9Q/Dmw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27408: dmaengine: dw-edma: eDMA: Add sync read before starting the DMA transfer in remote setup Date: Fri, 17 May 2024 13:52:00 +0200 Message-ID: <2024051700-CVE-2024-27408-6911@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=nxuwXFISJOuFfY9farIJeson0V1i2/tjrb3bpYeZ750=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnuLg/iNh4uKVy4zSIj9FL2/a1/qmYHT8j6ZKVjX9io7 zO39FNsRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkhBLDgilC9X+K7ETr37ZL JFk6PtzxVsZsEcM8o/APji/fCy28+3em37bMN9pMLpNeAgA= 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: eDMA: 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 eDMA 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-27408 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit 7e4b8a4fbe2c and fixed in 6.6.21 with commit d24fe6d5a1cf Issue introduced in 5.3 with commit 7e4b8a4fbe2c and fixed in 6.7.9 with commit f396b4df27cf Issue introduced in 5.3 with commit 7e4b8a4fbe2c and fixed in 6.8 with commit bbcc1c83f343 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-27408 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-edma-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/d24fe6d5a1cfdddb7a9ef56736ec501c4d0a5fd3 https://git.kernel.org/stable/c/f396b4df27cfe01a99f4b41f584c49e56477be3a https://git.kernel.org/stable/c/bbcc1c83f343e580c3aa1f2a8593343bf7b55bba