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 A64321465BE for ; Sat, 17 Aug 2024 09:11:38 +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=1723885898; cv=none; b=SDDUbBBNRSpQVhT/NkNZS+T3X0hxYIZPLy/OZOv3AODr4ppUGn62vdkRoynMGBIOvyUma+167OGJQ6+bT+WV80g4h/f86UXeR6EKId9YKxj+1qwvDVY34gGZW0ivCeYTZ/qhqSoUs6Ck5DHbeZv4GPfe5RSeK92q/IwP8ytIjBw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723885898; c=relaxed/simple; bh=pidYRcBRog3MyX0sew2yDdrNkuiTsT3ArSRSy3WZ+8Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=t/mUbMbJFHTSlQvdHWZOzRNbfQv3pzgdsDq7aeXKuXqLiS7D/9ZMc32Azk0HvozhLaUji3IsML4cyIE+fLf2svm36l3NGxTPEFetI8C3qZUaa5wHVvAyHuj2QE5RmdJtm5GCQIBoeVlythA82v8GBsX6qZ2kxe7NlsLBr9+EjGw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=E0KEU2F/; 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="E0KEU2F/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBBB2C4AF0C; Sat, 17 Aug 2024 09:11:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723885898; bh=pidYRcBRog3MyX0sew2yDdrNkuiTsT3ArSRSy3WZ+8Q=; h=From:To:Cc:Subject:Date:Reply-to:From; b=E0KEU2F/FmHlNrrT0hxR0rXrRhbXeDGvnOUGNEGgZAxUU8zB8HINmqf6RuDU205yK cJhDYseLMT1d/r9By+t9iXL3R9hLqsOj13aYUj887ajloVqoOCme2+R7iihP+wqIKM 3vS/Wc+EnFLBDRful6bnRVvexNcHV96xXEozUu1s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42279: spi: microchip-core: ensure TX and RX FIFOs are empty at start of a transfer Date: Sat, 17 Aug 2024 11:09:44 +0200 Message-ID: <2024081742-CVE-2024-42279-91b0@gregkh> X-Mailer: git-send-email 2.46.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=2172; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pidYRcBRog3MyX0sew2yDdrNkuiTsT3ArSRSy3WZ+8Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHMq5ZHrBNLTfpuPT11NrTleurfI8zh17nsenjNFGc9 e6QvktnRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk+muGOVwaIcU9ZttSQxY2 T4g94NXiNt/8P8N8h9+BLupTrl59+XbOL72/ttoXVX5tAQA= 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: microchip-core: ensure TX and RX FIFOs are empty at start of a transfer While transmitting with rx_len == 0, the RX FIFO is not going to be emptied in the interrupt handler. A subsequent transfer could then read crap from the previous transfer out of the RX FIFO into the start RX buffer. The core provides a register that will empty the RX and TX FIFOs, so do that before each transfer. The Linux kernel CVE team has assigned CVE-2024-42279 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 9ac8d17694b6 and fixed in 6.6.44 with commit 3feda3677e8b Issue introduced in 6.0 with commit 9ac8d17694b6 and fixed in 6.10.3 with commit 45e03d35229b Issue introduced in 6.0 with commit 9ac8d17694b6 and fixed in 6.11-rc1 with commit 9cf71eb0faef 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-42279 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-microchip-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/3feda3677e8bbe833c3a62a4091377a08f015b80 https://git.kernel.org/stable/c/45e03d35229b680b79dfea1103a1f2f07d0b5d75 https://git.kernel.org/stable/c/9cf71eb0faef4bff01df4264841b8465382d7927