Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 4D1D6317150 for ; Thu, 28 May 2026 09:39:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961181; cv=none; b=Wt3ut99sn20lKAfUbIZwSUNZz7xv795JCS+ZGf38TACSlSknVXYwQA2C3WFJ86gU0Z3AQf2qMcTw+F6874BSkY4QaUK324gGUFfYegecWnu0N5EJBMF68hIGoWFXbcZAKoaejn4CxHlz7SnpNg7i7GM8ImaafVjWCmV15BcBRNw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961181; c=relaxed/simple; bh=3mHlfW1Lp5ll2SPaDzvxX461GnsqqcTPrKn0xB+kK6w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RDQ3m93Dh9TnLOCEJ7HZdYKnTHgvKSb17HMXHy5BxNOz38jf8fn6n4pdySg9K3yg4j0oPQHXI9ITRdOR6+kpa+QaC4slJ8+jJJ6HdvKOgd4kHaCLjbxXWu7ndnM9lTsVyoXUdgmFmQM6PugqvPEMvCJvgzul7p87jl/ssUgtIMk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SPxsHRf2; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="SPxsHRf2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 617811F000E9; Thu, 28 May 2026 09:39:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779961179; bh=OLE2/LjVrXyQQwpto6kokDef8SemNw2DqlzpFZyqCr4=; h=From:To:Cc:Subject:Date:Reply-To; b=SPxsHRf2mxuRoyw7e9DAX646ccP/YGfTmzp4Uu36bGICzS9+eGTXl30d9Hsm6byov if56bVIUbU4DnkS4aJ4gOEAqOP/Zo9JB6qFYviqDnFywK/v2kZYBaicOTDjTnSIfec IVkIL0W+nSNzXuFdWXsn312+OmcER8lW98+hMHig= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46148: spi: microchip-core-qspi: control built-in cs manually Date: Thu, 28 May 2026 11:36:53 +0200 Message-ID: <2026052821-CVE-2026-46148-4275@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3784; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wnr1DxkFK34cluqogYCmM3BmCtfaM8NvyPJaOEaNiyk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkSPFP3S8flPdrwsn3v61MrPvnv2Kd751luaUe4oO7+S cnPk080d8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEmNkY5idrGb7YFinFrbL0 muL/H+K/P9kH32FY0Jnzhv9qHsfXky/lfzxeOD2o5YDzYwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: spi: microchip-core-qspi: control built-in cs manually The coreQSPI IP supports only a single chip select, which is automagically operated by the hardware - set low when the transmit buffer first gets written to and set high when the number of bytes written to the TOTALBYTES field of the FRAMES register have been sent on the bus. Additional devices must use GPIOs for their chip selects. It was reported to me that if there are two devices attached to this QSPI controller that the in-built chip select is set low while linux tries to access the device attached to the GPIO. This went undetected as the boards that connected multiple devices to the SPI controller all exclusively used GPIOs for chip selects, not relying on the built-in chip select at all. It turns out that this was because the built-in chip select, when controlled automagically, is set low when active and high when inactive, thereby ruling out its use for active-high devices or devices that need to transmit with the chip select disabled. Modify the driver so that it controls chip select directly, retaining the behaviour for mem_ops of setting the chip select active for the entire duration of the transfer in the exec_op callback. For regular transfers, implement the set_cs callback for the core to use. As part of this, the existing setup callback, mchp_coreqspi_setup_op(), is removed. Modifying the CLKIDLE field is not safe to do during operation when there are multiple devices, so this code is removed entirely. Setting the MASTER and ENABLE fields is something that can be done once at probe, it doesn't need to be re-run for each device. Instead the new setup callback sets the built-in chip select to its inactive state for active-low devices, as the reset value of the chip select in software controlled mode is low. The Linux kernel CVE team has assigned CVE-2026-46148 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit 8596124c4c1bc7561454cee0463c16eca70b5d25 and fixed in 6.18.30 with commit 998f43196d732f20f9b71eb6ebd973736c9fa911 Issue introduced in 6.1 with commit 8596124c4c1bc7561454cee0463c16eca70b5d25 and fixed in 7.0.7 with commit ee3c99aa102212ad59dc2c19595515c4a6729307 Issue introduced in 6.1 with commit 8596124c4c1bc7561454cee0463c16eca70b5d25 and fixed in 7.1-rc3 with commit 7672749e1496215e8683ce57cf323119033954cf 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-2026-46148 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-qspi.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/998f43196d732f20f9b71eb6ebd973736c9fa911 https://git.kernel.org/stable/c/ee3c99aa102212ad59dc2c19595515c4a6729307 https://git.kernel.org/stable/c/7672749e1496215e8683ce57cf323119033954cf