CVE-2024-40956

dmaengine: idxd: Fix possible Use-After-Free in irq_process_work_list

HIGH
7.8
CVSS Score
Published: July 12, 2024 at 12:31 PM UTC
Updated: August 5, 2026 at 12:04 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.11 ≤ v < 5.15.1625.11 ≤ v < 6.1.965.11 ≤ v < 6.105.11 ≤ v < 6.6.365.11 ≤ v < 6.9.75.16 ≤ v < 6.1.966.2 ≤ v < 6.6.366.7 ≤ v < 6.9.716e19e11228ba660d9e322035635e7dcf160d5c26.10 rc16.10 rc26.10 rc36.10 rc4
Vendor states this is fixed in 1b08bf5a17c66ab7dbb628df5344da53c8e7ab33 (fixed)
Vendor states this is fixed in 83163667d881100a485b6c2daa30301b7f68d9b5 (fixed)
Vendor states this is fixed in a14968921486793f2a956086895c3793761309dd (fixed)
Vendor states this is fixed in e3215deca4520773cd2b155bed164c12365149a7 (fixed)
Vendor states this is fixed in faa35db78b058a2ab6e074ee283f69fa398c36a8 (fixed)
Vendor states this is fixed in 5.11 (unaffected)
Vendor states this is fixed in 5.15.162 (unaffected)
Vendor states this is fixed in 6.1.96 (unaffected)
Vendor states this is fixed in 6.10 (unaffected)
Vendor states this is fixed in 6.6.36 (unaffected)
Vendor states this is fixed in 6.9.7 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1b08bf5a17c66ab7dbb628df5344da53c8e7ab33
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/83163667d881100a485b6c2daa30301b7f68d9b5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a14968921486793f2a956086895c3793761309dd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e3215deca4520773cd2b155bed164c12365149a7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/faa35db78b058a2ab6e074ee283f69fa398c36a8
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card