CVE-2026-139625

spi: rockchip-sfc: skip DMA cleanup in PIO mode

Published Nov 30, 2026 CVSS 3.1 · 4.4 Medium EPSS < 1% KEV · Not listed
Description
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 dma_unmap_single() for that nonexistent mapping.

Guard the DMA mapping and buffer cleanup with use_dma. 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.

Analysis

AI-generated

Technical impact

The Rockchip SFC driver in the Linux kernel skips a DMA cleanup routine when operating in PIO mode. When the probe detects a "rockchip,sfc-no-dma" configuration, it avoids allocating and mapping a DMA transfer buffer, but the driver still calls dma_unmap_single() during registration failure or removal. This unguarded call attempts to unmap a nonexistent buffer, causing memory corruption and triggering a kernel panic. The effect is a complete denial of service on the affected system as the kernel becomes unstable.

Affected Systems

All Linux kernels that include the Rockchip SFC (SPI) driver and use PIO mode can be affected. The flaw manifests when the system configuration advertises the "rockchip,sfc-no-dma" property, which disables DMA usage but does not inform the driver cleanup code. No specific kernel version is listed, so the issue applies to every release containing the unguarded logic until patched.

Risk and Exploitability

The CVSS score of 4.4 indicates low severity; EPSS is not available and it is not listed in the CISA KEV catalog. Exploitation would involve triggering or forcing the driver during registration or removal, leading to a kernel panic due to an unguarded dma_unmap_single() call. This results in a denial‑of‑service by crashing the kernel. The low CVSS score contrasts with the potentially disruptive impact of a kernel crash, making remediation a priority.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a kernel version that contains the patch adding a use_dma guard before dma_unmap_single in the Rockchip SFC driver.
  • Apply the upstream commit that replaces the unguarded cleanup path with a conditional check for an active DMA mapping.
  • If the driver is not required for your workload, disable or unload the rockchip SFC module to eliminate the attack surface.

Generated by OpenCVE AI on December 1, 2026 at 17:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-404
CWE-476
Type Values Removed Values Added
Weaknesses CWE-763
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-404
CWE-476
Type Values Removed Values Added
Description 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 dma_unmap_single() for that nonexistent mapping. Guard the DMA mapping and buffer cleanup with use_dma. 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.
Title spi: rockchip-sfc: skip DMA cleanup in PIO mode
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-763

    Release of Invalid Pointer or Reference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:36 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:36 PM