dmaengine: sun6i-dma: Fix reclaim descriptors while terminating DMA
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 555859308723d8d5b828304f5eb9281143fd86b5 · < 9086b488f2737d5dcee86852b83f2059f1cdfabf| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: sun6i-dma: Fix reclaim descriptors while terminating DMA
When terminating DMA transfers, active descriptors are not properly reclaimed. Only cyclic descriptors were handled, leaving non-cyclic descriptors and their LLI chains to be permanently leaked.
Fix by using vchan_terminate_vdesc() which handles both cyclic and non-cyclic descriptors by adding them to desc_terminated queue for proper cleanup.
Add pchan->desc != pchan->done check to prevent double-adding completed descriptors, which would corrupt the list.
From the CVE record · Linux
The Linux kernel sun6i-dma driver does not properly reclaim active non-cyclic descriptors and their LLI chains when DMA transfers are terminated, causing a permanent leak. The input does not describe an attacker path or specify whether network access, authentication, or user interaction is required.
Teams running Linux kernels with the sun6i-dma driver should check whether their kernel is affected; affected versions are not specified.