dmaengine: dw-edma: Serialize abort state updates
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e63d79d1ffcd2201a2dbff1d7a1184b8f3ec74cf · < 0c3294066c36d5980fd9c8192dcb53bb9ccd1f7b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: dw-edma: Serialize abort state updates
dw_edma_abort_interrupt() drops vc.lock before changing request and status. issue_pending() can acquire the lock in that small window, observe the old busy state, and skip starting queued descriptors. Then the abort handler overwrites the channel status as idle, leaving the new descriptors stranded for good.
Keep descriptor completion and the state transition in the same critical section.
From the CVE record · Linux
A race in the Linux kernel’s dw-edma abort handler can leave queued descriptors stranded when issue_pending() runs during an abort state update. The input does not specify an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with the dw-edma driver should check their versions against the vendor advisory; affected versions are not specified.