CVE-2024-46716 dmaengine: altera-msgdma: properly free descriptor in msgdma_free_descriptor
A use-after-free vulnerability in the Altera MSGDMA driver allows attackers to cause a denial of service or potentially execute code via improper descriptor list management.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-46716?
CVE-2024-46716 is a high-severity use after free vulnerability in Linux kernel, published on 18 Sep 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-416
Which versions are affected by CVE-2024-46716?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-46716?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2024-46716 being exploited?
There is no known exploitation of CVE-2024-46716 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-68264, BELL-CVE-2024-46716, DEBIAN-CVE-2024-46716, GHSA-4qr8-v8vv-2g9w, ROOT-OS-DEBIAN-11-CVE-2024-46716, ROOT-OS-UBUNTU-2204-CVE-2024-46716 and 1 more.