dmaengine: sh: rz-dmac: Move interrupt request after everything is set up
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5000d37042a61ca556fde2782ca40dbfa802ea16 · < 07ae600bd353b22f31a8f1007269744fafc7f123| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: sh: rz-dmac: Move interrupt request after everything is set up
Once the interrupt is requested, the interrupt handler may run immediately. Since the IRQ handler can access channel->ch_base, which is initialized only after requesting the IRQ, this may lead to invalid memory access. Likewise, the IRQ thread may access uninitialized data (the ld_free, ld_queue, and ld_active lists), which may also lead to issues.
Request the interrupts only after everything is set up. To keep the error path simpler, use dmam_alloc_coherent() instead of dma_alloc_coherent().
From the CVE record · Linux
The Linux kernel rz-dmac driver requests interrupts before initializing data that its interrupt handler and thread may access. If an interrupt runs immediately, it may access uninitialized data or invalid memory. The input does not specify an attacker path, authentication requirements, or user interaction.
Engineers running the Linux kernel should check whether their kernel includes the affected rz-dmac driver; affected versions are not specified.