CVE-2026-31440: dmaengine: idxd: Fix leaking event log memory
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: idxd: Fix leaking event log memory
During the device remove process, the device is reset, causing the configuration registers to go back to their default state, which is zero. As the driver is checking if the event log support was enabled before deallocating, it will fail if a reset happened before.
Do not check if the support was enabled, the check for 'idxd->evl' being valid (only allocated if the HW capability is available) is enough.
The Linux kernel CVE team has assigned CVE-2026-31440 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.4 with commit 244da66cda359227d80ccb41dbcb99da40eae186 and fixed in 6.12.80 with commit d94f9b0ba28a205caf95902ee88b42bdb8af83d0 Issue introduced in 6.4 with commit 244da66cda359227d80ccb41dbcb99da40eae186 and fixed in 6.18.21 with commit facd0012708e942fc12890708738aebde497564e Issue introduced in 6.4 with commit 244da66cda359227d80ccb41dbcb99da40eae186 and fixed in 6.19.11 with commit 9dfa00967e6ef43a9dd0887fe5c3a721a39da92e Issue introduced in 6.4 with commit 244da66cda359227d80ccb41dbcb99da40eae186 and fixed in 7.0 with commit ee66bc29578391c9b48523dc9119af67bd5c7c0f
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-31440
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/device.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/d94f9b0ba28a205caf95902ee88b42bdb8af83d0 https://git.kernel.org/stable/c/facd0012708e942fc12890708738aebde497564e https://git.kernel.org/stable/c/9dfa00967e6ef43a9dd0887fe5c3a721a39da92e https://git.kernel.org/stable/c/ee66bc29578391c9b48523dc9119af67bd5c7c0f