CVE-2026-139625: spi: rockchip-sfc: skip DMA cleanup in PIO mode
In the Linux kernel, the following vulnerability has been resolved:
spi: rockchip-sfc: skip DMA cleanup in PIO mode
With rockchip,sfc-no-dma, probe skips allocating and mapping the transfer buffer. However, controller registration failure and driver removal still call dmaunmapsingle() for that nonexistent mapping.
Guard the DMA mapping and buffer cleanup with usedma. Keep the existing cleanup for allocation and mapping failures on the DMA path.
This issue was identified during our ongoing static-analysis research while reviewing kernel code.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Linux kernel rockchip-sfc driver, guard DMA mapping and transfer-buffer cleanup with use_dma so PIO mode with rockchip,sfc-no-dma does not unmap a nonexistent DMA mapping.
Event History
Frequently Asked Questions
Which systems are exposed to the invalid DMA cleanup path?
Systems using the Rockchip SFC driver with the rockchip,sfc-no-dma configuration are exposed. In this mode, the driver skips transfer-buffer allocation and DMA mapping.
When can the faulty cleanup be reached?
The invalid dma_unmap_single() call can occur if controller registration fails or when the driver is removed. Those paths perform DMA cleanup even though no DMA mapping exists in PIO mode.
How can I determine whether a system may be affected?
Check whether the Rockchip SFC device is configured with rockchip,sfc-no-dma and whether the system exercises driver removal or encounters controller registration failures. The affected condition is specifically the PIO/no-DMA path.