🔍 CVE-2026-72134

7.8
CVSS Score
HIGH
2026-08-15
2026-08-17 06:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 imx SPI 드라이버에서 DMA 설정 실패 시 PIO 모드로의 전환 과정 중 설정이 제대로 초기화되지 않는 취약점입니다. 이로 인해 DMA 모드 설정이 남은 상태에서 PIO 전송이 수행되어 데이터가 손상될 수 있습니다.

💡 쉬운 설명

데이터를 빠르게 보내는 특수 기능(DMA)을 쓰려다 실패했을 때, 원래의 기본 모드(PIO)로 완벽하게 돌아가지 못해 데이터가 엉뚱하게 전달되는 문제입니다. 이로 인해 보안 칩(TPM) 같은 장치가 오작동하거나 잘못된 정보를 보낼 수 있습니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

Linux kernel (imx SPI driver 사용 장치, 특히 SDMA 펌웨어가 없는 i.MX8MP 보드)

⚔️ 공격 벡터

로컬 또는 하드웨어 제어를 통한 DMA 준비 실패 유도 및 데이터 변조

🛡️ 대응 방법

Linux 커널을 최신 패치가 적용된 버전으로 업데이트하여 SPI 드라이버의 fallback 로직을 수정해야 합니다.

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인합니다.

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Linux Kernel