CVE-2024-40956: dmaengine: idxd: Fix possible Use-After-Free in irq_process_work_list
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: idxd: Fix possible Use-After-Free in irqprocessworklist
Use listforeachentrysafe() to allow iterating through the list and deleting the entry in the iteration process. The descriptor is freed via idxddesccomplete() and there's a slight chance may cause issue for the list iterator when the descriptor is reused by another thread without it being deleted from the list.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.129-1~deb11u1 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 5.15.162 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.1.96 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.6.36 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.9.7 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.10
Event History
Frequently Asked Questions
What is the severity of CVE-2024-40956?
CVE-2024-40956 has a high severity rating due to the potential for a Use-After-Free vulnerability in the Linux kernel.
How do I fix CVE-2024-40956?
To fix CVE-2024-40956, upgrade the Linux kernel to version 5.15.162, 6.1.96, 6.6.36, or newer versions as specified by your Linux distribution.
Which Linux kernel versions are affected by CVE-2024-40956?
CVE-2024-40956 affects various Linux kernel versions, specifically those below 5.15.162, 6.1.96, and 6.6.36.
What are the potential impacts of CVE-2024-40956?
Exploitation of CVE-2024-40956 may lead to system crashes or unauthorized access, potentially affecting system stability.
Is CVE-2024-40956 specific to a particular Linux distribution?
CVE-2024-40956 is not specific to a single distribution and affects the Linux kernel used by multiple distributions including Red Hat and Debian.