CVE-2026-31436: dmaengine: idxd: fix possible wrong descriptor completion in llist_abort_desc()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: idxd: fix possible wrong descriptor completion in llist_abort_desc()
At the end of this function, d is the traversal cursor of flist, but the code completes found instead. This can lead to issues such as NULL pointer dereferences, double completion, or descriptor leaks.
Fix this by completing d instead of found in the final list_for_each_entry_safe() loop.
The Linux kernel CVE team has assigned CVE-2026-31436 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.8 with commit aa8d18becc0c14aa3eb46d6d1b81450446e11b87 and fixed in 6.12.80 with commit e21da2ad8844585040fe4b82be1ad2fe99d40074 Issue introduced in 6.8 with commit aa8d18becc0c14aa3eb46d6d1b81450446e11b87 and fixed in 6.18.21 with commit 82656e8daf8de00935ae91b91bed43f4d6e0d644 Issue introduced in 6.8 with commit aa8d18becc0c14aa3eb46d6d1b81450446e11b87 and fixed in 6.19.11 with commit 0e4f43779d550e559be13a5cdb763bad92c4cc99 Issue introduced in 6.8 with commit aa8d18becc0c14aa3eb46d6d1b81450446e11b87 and fixed in 7.0 with commit e1c9866173c5f8521f2d0768547a01508cb9ff27
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-31436
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/dma/idxd/submit.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/e21da2ad8844585040fe4b82be1ad2fe99d40074 https://git.kernel.org/stable/c/82656e8daf8de00935ae91b91bed43f4d6e0d644 https://git.kernel.org/stable/c/0e4f43779d550e559be13a5cdb763bad92c4cc99 https://git.kernel.org/stable/c/e1c9866173c5f8521f2d0768547a01508cb9ff27