CVE-2026-31442: dmaengine: idxd: Fix possible invalid memory access after FLR
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: idxd: Fix possible invalid memory access after FLR
In the case that the first Function Level Reset (FLR) concludes correctly, but in the second FLR the scratch area for the saved configuration cannot be allocated, it's possible for a invalid memory access to happen.
Always set the deallocated scratch area to NULL after FLR completes.
The Linux kernel CVE team has assigned CVE-2026-31442 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.14 with commit 98d187a989036096feaa2fef1ec3b2240ecdeacf and fixed in 6.18.21 with commit 504c0e6751001ac46917c73e703f2b1b92cfc026 Issue introduced in 6.14 with commit 98d187a989036096feaa2fef1ec3b2240ecdeacf and fixed in 6.19.11 with commit 867d0c801f21370d561420fa32f2ea1a7dc3a22d Issue introduced in 6.14 with commit 98d187a989036096feaa2fef1ec3b2240ecdeacf and fixed in 7.0 with commit d6077df7b75d26e4edf98983836c05d00ebabd8d
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-31442
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/init.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/504c0e6751001ac46917c73e703f2b1b92cfc026 https://git.kernel.org/stable/c/867d0c801f21370d561420fa32f2ea1a7dc3a22d https://git.kernel.org/stable/c/d6077df7b75d26e4edf98983836c05d00ebabd8d