Bug 2586732 (CVE-2026-139625)

Summary: CVE-2026-139625 kernel: kernel: rockchip-sfc: Denial of Service via improper DMA cleanup in PIO mode
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in the Linux kernel's Rockchip Serial Flash Controller (SFC) driver. This issue can lead to a Denial of Service (DoS) through a system crash caused by improper memory cleanup. When operating in Programmed Input/Output (PIO) mode without Direct Memory Access (DMA), the driver skips allocating and mapping a DMA transfer buffer. However, error handling during registration failure or driver removal attempts to unmap and free the nonexistent buffer, allowing a local privileged user to trigger kernel instability.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-11-30 14:36:46 UTC
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.