CVE-2026-139514: dmaengine: ste_dma40: Fix memcpy channel parsing
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: stedma40: Fix memcpy channel parsing
d40ofprobe() validates the memcpy-channels property against D40MEMCPYMAXCHANS, but reads the property directly into a smaller global array. A long property can therefore overwrite adjacent data. The mutable global also lets a later DMA40 instance replace the memcpy channel mapping used for future allocations on an earlier instance.
Store the mapping in the per-device platform data, validate the property against that storage, and check the property read result. The property is required and d40probe() always populates the platform data, so remove the obsolete global mapping and fallback.
Affected Software
Event History
Frequently Asked Questions
What conditions are required for this issue to be reachable?
The affected system must use the DMA40 driver and provide a memcpy-channels device-tree property. A property containing more channel entries than the driver's smaller destination array can overwrite adjacent data during parsing.
Are multi-instance DMA40 deployments affected differently?
Yes. Before the fix, memcpy channel mappings were held in mutable global storage, so probing a later DMA40 instance could replace the mapping used for future allocations on an earlier instance.
Is there a configuration fallback if memcpy-channels is absent?
No. The driver treats memcpy-channels as required, and the corrected implementation relies on platform data populated during probing rather than a global mapping or fallback.