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 irq_process_work_list
Use list_for_each_entry_safe() to allow iterating through the list and
deleting the entry in the iteration process. The descriptor is freed via
idxd_desc_complete() 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.
Security readout for executives and security teams
Plain-English summary
A timing race in the Linux idxd DMA driver can leave kernel code using a descriptor after it has been freed. On affected systems, a lower-privileged local actor could potentially trigger kernel memory corruption, threatening confidentiality, integrity, and availability. The provided evidence does not establish remote reachability or real-world exploitation.
Executive priority
Treat this as high-priority patching for systems using idxd and hosting less-trusted local workloads. It is not presented as an internet-remote flaw, and active exploitation is not evidenced. Address it within normal expedited kernel maintenance, accelerating further where tenant isolation, sensitive data, or system availability is business-critical.
Technical view
irq_process_work_list() iterates a descriptor list while idxd_desc_complete() can free the current descriptor. Another thread may reuse it before the iterator advances, creating a use-after-free. The kernel fix uses list_for_each_entry_safe() so deletion during iteration does not invalidate traversal.
Likely exposure
Exposure is limited to Linux systems containing and using the affected idxd dmaengine code. The bundle lists several version markers and branch-specific stable fixes, but its version representation is ambiguous. Determine status from the running distribution kernel build, vendor advisory, and fix backport rather than version matching alone.
Exploitation context
CVSS 3.1 rates this 7.8: local access, low complexity, low privileges, and no user interaction. It is not in KEV, and the supplied sources do not document active exploitation. Practical reachability and reliability depend on access to the idxd driver and winning the described race.
Researcher notes
The defect is a concurrent list-deletion safety error with a narrow timing window. Source material identifies the corrective iteration primitive but provides no demonstrated exploit path, hardware prerequisites, or affected configuration details. Researchers should distinguish code presence from reachability and account for distribution backports when assessing versions.
Mitigation direction
Install the applicable distribution or kernel.org stable update containing the referenced idxd fix.
Prioritize hosts using idxd that also run untrusted or less-trusted local workloads.
Consult the kernel or distribution vendor for supported guidance if immediate updating is unavailable.
Reboot as required so the corrected kernel becomes the running kernel.
Validation and detection
Inventory each host's running kernel build and distribution package, not merely installed packages.
Determine whether the idxd dmaengine driver is configured, loaded, or actively used.
Confirm the running build includes an applicable referenced fix or vendor backport.
After updating, verify the corrected kernel is running and relevant regression tests pass.
Review kernel logs for idxd-related faults, while recognizing absence of faults does not prove safety.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2024-40956 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.