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 2B09A2BB0A for ; Sat, 2 Mar 2024 21:53:29 +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=1709416410; cv=none; b=VaJ6Iw6oSRK4jSRdQiGFEWQjwmmuRMcGH7QydECPAEFTAnN5zlwVowMy6EG4gNS/Vh/YcPiYpZ/iB/tRc4rAF/BYUC/vS05lRcGrS0r1BWpxgkvH6+Ab2FrHsP4wU4coGfG7aQcX1P0kGW3UeqZeBKp79C6FnTCHIbbJMOVk4pU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709416410; c=relaxed/simple; bh=mSdYzziuB7pybcUN6C72a49JnxnneNPUwEK2AzVJLxE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YSm7nTWgl6cZmGhykaMFXPK4n0HUV44As5a0nkV4OatAfUtJBJFXSGQsoiVdNH1mDaT36ZZRTOYdVUqFQKc0RFXRouoAiUZRCb0Ed8dW7SC7+PJmxTtWYjl+5sSxbtJzOdishbeLs1pOtOPIvDYt3FU822tXyrItmvcIX1SogJk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=snKhdm4S; 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="snKhdm4S" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B412C433F1; Sat, 2 Mar 2024 21:53:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709416409; bh=mSdYzziuB7pybcUN6C72a49JnxnneNPUwEK2AzVJLxE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=snKhdm4Sw4JsOGjKJRM/P95kXVaQGt4nnbrp1pg9GYzY6Qm4kSThSXVgDOerWE9w0 qyo2+yNhkv4FnUAP+zHGBNRbZylq/OTDh7VZdzeBc4sVmk28BFcj0QDYQcwzZZir/K KqXOOticcNPvfQCW+5kWc8Tea4LUGnunx17Zb9aE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52511: spi: sun6i: reduce DMA RX transfer width to single byte Date: Sat, 2 Mar 2024 22:52:56 +0100 Message-ID: <2024030250-CVE-2023-52511-1dbc@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=2288; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mSdYzziuB7pybcUN6C72a49JnxnneNPUwEK2AzVJLxE=; b=owGbwMvMwCRo6H6F97bub03G02pJDKmP529Wv28U61k8j7cqlMv/16JftqvNIg7PnHCi/rpLi 6ay7Z3dHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR1WUM87P2vEsSKnku8O+X 5q8+GSOPiYpMrgzzQ2bMdaxb1S/+4k6SUdiMqixFhkWHAQ== 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: spi: sun6i: reduce DMA RX transfer width to single byte Through empirical testing it has been determined that sometimes RX SPI transfers with DMA enabled return corrupted data. This is down to single or even multiple bytes lost during DMA transfer from SPI peripheral to memory. It seems the RX FIFO within the SPI peripheral can become confused when performing bus read accesses wider than a single byte to it during an active SPI transfer. This patch reduces the width of individual DMA read accesses to the RX FIFO to a single byte to mitigate that issue. The Linux kernel CVE team has assigned CVE-2023-52511 to this issue. Affected and fixed versions =========================== Fixed in 5.15.134 with commit ff05ed4ae214 Fixed in 6.1.56 with commit e15bb292b246 Fixed in 6.5.6 with commit b3c21c9c7289 Fixed in 6.6 with commit 171f8a49f212 Please see https://www.kernel.org or 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-2023-52511 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/spi/spi-sun6i.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/ff05ed4ae214011464a0156f05cac1b0b46b5fbc https://git.kernel.org/stable/c/e15bb292b24630ee832bfc7fd616bd72c7682bbb https://git.kernel.org/stable/c/b3c21c9c7289692f4019f163c3b06d8bdf78b355 https://git.kernel.org/stable/c/171f8a49f212e87a8b04087568e1b3d132e36a18