Skip to contentSkip to conversation

CVE-2026-31441: dmaengine: idxd: Fix memory leak when a wq is reset

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 22

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

dmaengine: idxd: Fix memory leak when a wq is reset

idxd_wq_disable_cleanup() which is called from the reset path for a workqueue, sets the wq type to NONE, which for other parts of the driver mean that the wq is empty (all its resources were released).

Only set the wq type to NONE after its resources are released.

The Linux kernel CVE team has assigned CVE-2026-31441 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.8 with commit da32b28c95a79e399e18c03f8178f41aec9c66e4 and fixed in 6.1.168 with commit a16098a2f0c11ee5e04e23aa7478ca1fcfb0f658
	Issue introduced in 5.8 with commit da32b28c95a79e399e18c03f8178f41aec9c66e4 and fixed in 6.6.131 with commit 54d77cc0c40ca2f894859dc7b3c52997574f1a2a
	Issue introduced in 5.8 with commit da32b28c95a79e399e18c03f8178f41aec9c66e4 and fixed in 6.12.80 with commit 39c1504e0e76bcfb93991fd94288a83e05d13b51
	Issue introduced in 5.8 with commit da32b28c95a79e399e18c03f8178f41aec9c66e4 and fixed in 6.18.21 with commit a9e7815d38629bcf59d3005001f1f315424a58de
	Issue introduced in 5.8 with commit da32b28c95a79e399e18c03f8178f41aec9c66e4 and fixed in 6.19.11 with commit 0c3d3ac57e3c52b570b8c695903306bff07e04c8
	Issue introduced in 5.8 with commit da32b28c95a79e399e18c03f8178f41aec9c66e4 and fixed in 7.0 with commit d9cfb5193a047a92a4d3c0e91ea4cc87c8f7c478
	Issue introduced in 5.7.10 with commit 2a2df2bd10de44c3804661ed15157817c12d6291

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-31441

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/a16098a2f0c11ee5e04e23aa7478ca1fcfb0f658
	https://git.kernel.org/stable/c/54d77cc0c40ca2f894859dc7b3c52997574f1a2a
	https://git.kernel.org/stable/c/39c1504e0e76bcfb93991fd94288a83e05d13b51
	https://git.kernel.org/stable/c/a9e7815d38629bcf59d3005001f1f315424a58de
	https://git.kernel.org/stable/c/0c3d3ac57e3c52b570b8c695903306bff07e04c8
	https://git.kernel.org/stable/c/d9cfb5193a047a92a4d3c0e91ea4cc87c8f7c478