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 1105435DA79 for ; Sat, 15 Aug 2026 06:14:51 +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=1786774492; cv=none; b=kd6xpTxvc4GFCPQT1B20NQIhnOryW3Jg2CvHTdZV8kNvE34EbqdNpXUx/bpe8UmyU8KQvVBOgX4SOYUOcZ2LA2+dmxmhmni5DMT8W28uBH3S7/Qjl/NoNyVuo83S9gReDUNwIB0LMOynoX1Ti7qyLZJ5g4ScuitiDoI+VWjItSI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774492; c=relaxed/simple; bh=6Ze//KiXi5kZecXVAawDfD4K5xxNDCvZsmhJgCFTOXc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DsVOoflX32sglR9rhZBBq2GO5MlAAJ0RdMEFTQP/eioq0X0QLOPDOv9QkjVvdqBiS6D13sH3gadiRlw32lgv7WAiGwMXv/809O+MGQv3PYyPSnoNUdFyPo08YDjVFNqyCoIsq3gOSlqgi1j4UOBSGcOFWfyG3IP/k6IIYEvbEf4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cdE/xupW; 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="cdE/xupW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6760B1F000E9; Sat, 15 Aug 2026 06:14:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774491; bh=QrIjLtfQZbUyXMoKrqjjDn7uA8FcgCzZ/LuGMuxONjY=; h=From:To:Cc:Subject:Date:Reply-To; b=cdE/xupWyqPJLGcMR5BuEW+cmLtZYEsO6w9gAVkcaF9RzWKBZYwVHowoScppsQKbp XQFN4rdpf+O7mXgza+BdU6CzBZbFlNccT8vfp5HtjjbP8tp8kTufKTceN7JEuadg+w c8MmCY4ftVsQjxWg1eSuZJ9QpsNoNSGQLmm6Mhbw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72134: spi: imx: reconfigure for PIO when DMA cannot be started Date: Sat, 15 Aug 2026 15:03:33 +0900 Message-ID: <2026081531-CVE-2026-72134-8030@gregkh> X-Mailer: git-send-email 2.55.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=3328; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5ZQ8zCI3xSngMWngteP0+LxRCV2EQ4wdbp9QdKuas/I=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDLujbfzXt03gYH+t+U5A7P290wHHZz878lNGZuGW/ uatXjzOHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRrTUM81MyJss2Fm9MMH55 eWtLk87pXnfnQwzzY2VjVk6fergg0Wat6+OmrK6oNk8+AA== 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: imx: reconfigure for PIO when DMA cannot be started When spi_imx_can_dma() selects DMA, the ECSPI is configured for DMA: spi_imx_setupxfer() sets CTRL.SMC and clears dynamic_burst, and spi_imx_dma_transfer() programs the dynamic-burst BURST_LENGTH and the SDMA watermarks. If the DMA descriptor cannot be prepared (dmaengine_prep_slave_single() returns NULL), the transfer is failed with SPI_TRANS_FAIL_NO_START and falls back to PIO. The dynamic-burst DMA path uses its own bounce buffers instead of the SPI core's mapping, so xfer->{tx,rx}_sg_mapped are not set and the core's DMA->PIO retry is skipped; the driver falls back to PIO internally. But none of the DMA-mode configuration is undone, so the PIO transfer runs with CTRL.SMC set, the wrong burst length and dynamic_burst cleared, and the transferred data is corrupted. This is easily hit on i.MX8MP boards that describe ECSPI DMA in the device tree but run SDMA on ROM firmware (no external sdma-imx7d.bin): every ECSPI DMA prepare fails. An Infineon SLB9670 TPM on ECSPI1 then returns shifted TPM2_GetCapability data, is flagged "field failure mode", /dev/tpmrm0 is never created. Set controller->fallback before re-running spi_imx_setupxfer() so the ECSPI is reconfigured exactly like a normal PIO transfer. With controller->fallback set, spi_imx_setupxfer() sees spi_imx_can_dma() return false, so it clears spi_imx->usedma and reprograms the controller (clears CTRL.SMC, restores dynamic_burst and the PIO burst length). No explicit spi_imx->usedma = false is needed: setupxfer() already updates it from the can_dma() result. The Linux kernel CVE team has assigned CVE-2026-72134 to this issue. Affected and fixed versions =========================== Issue introduced in 7.0 with commit faa8e404ad8e686cb98c51dc507fdcacfb8020ce and fixed in 7.1.5 with commit 40dee2d3e9994aed9efe7bed40eb0e4d38d5a25c Issue introduced in 7.0 with commit faa8e404ad8e686cb98c51dc507fdcacfb8020ce and fixed in 7.2-rc1 with commit 245404c26563aafb36aafb01298f148db1851be3 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-72134 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-imx.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/40dee2d3e9994aed9efe7bed40eb0e4d38d5a25c https://git.kernel.org/stable/c/245404c26563aafb36aafb01298f148db1851be3