CVE-2026-139515: dmaengine: ste_dma40: Init hardware before registration
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: stedma40: Init hardware before registration
d40probe() enables the interrupt handler and registers DMAengine devices before calling d40hwinit(). An interrupt pending from the bootloader can therefore reach the handler while the hardware interrupt state is not initialized and channel lookup entries are empty. The handler deliberately does not acknowledge an interrupt for an unknown channel, so a level IRQ can retrigger continuously.
Initialize the hardware and set the DMA segment limit before requesting the IRQ or registering DMAengine devices. d40hwinit() clears pending logical and physical interrupt status, so requestirq() can enable the line normally after the hardware state is initialized.
This ensures that the handler and clients only observe initialized hardware.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the ste_dma40 driver, initialize the hardware with d40_hw_init() and set the DMA segment limit before requesting the IRQ or registering DMAengine devices.
Event History
Frequently Asked Questions
What conditions are required for this issue to occur?
A DMA40 interrupt must already be pending, such as one left by the bootloader, when d40_probe() enables the interrupt handler before hardware initialization has completed. The interrupt then reaches a handler whose channel lookup entries are still empty.
What is the operational impact?
The handler does not acknowledge interrupts for unknown channels. If the pending interrupt is level-triggered, it can continuously retrigger, potentially causing an interrupt storm during driver initialization.
Are systems using the default fixed driver initialization order affected?
Systems are affected when the DMA40 driver requests its IRQ and registers DMAengine devices before calling d40_hw_init(), and a pending bootloader-era interrupt is present. The corrected order initializes hardware and clears pending logical and physical interrupt status before the IRQ is requested.