dmaengine: altera-msgdma: properly free descriptor in msgdma_free_descriptor
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: altera-msgdma: properly free descriptor in msgdma_free_descriptor
Remove list_del call in msgdma_chan_desc_cleanup, this should be the role of msgdma_free_descriptor. In consequence replace list_add_tail with list_move_tail in msgdma_free_descriptor.
This fixes the path: msgdma_free_chan_resources -> msgdma_free_descriptors -> msgdma_free_desc_list -> msgdma_free_descriptor
which does not correctly free the descriptors as first nodes were not removed from the list.
From the CVE record · Linux
The Linux kernel's altera-msgdma driver has a descriptor cleanup flaw: the resource-freeing path does not correctly remove descriptors from a list. The issue is classified as a use-after-free, but the input does not specify what an attacker could achieve or whether exploitation requires network access, local access, authentication, or user interaction.
Engineers running Linux kernels with the altera-msgdma driver should check their versions; affected versions are not specified.