CVE-2025-71163: dmaengine: idxd: fix device leaks on compat bind and unbind
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: idxd: fix device leaks on compat bind and unbind
Make sure to drop the reference taken when looking up the idxd device as part of the compat bind and unbind sysfs interface.
The Linux kernel CVE team has assigned CVE-2025-71163 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.15 with commit 6e7f3ee97bbe2c7d7a53b7dbd7a08a579e03c8c9 and fixed in 6.12.67 with commit 0c97ff108f825a70c3bb29d65ddf0a013d231bb9 Issue introduced in 5.15 with commit 6e7f3ee97bbe2c7d7a53b7dbd7a08a579e03c8c9 and fixed in 6.18.7 with commit a7226fd61def74b60dd8e47ec84cabafc39d575b Issue introduced in 5.15 with commit 6e7f3ee97bbe2c7d7a53b7dbd7a08a579e03c8c9 and fixed in 6.19-rc6 with commit 799900f01792cf8b525a44764f065f83fcafd468
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-2025-71163
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/compat.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/0c97ff108f825a70c3bb29d65ddf0a013d231bb9 https://git.kernel.org/stable/c/a7226fd61def74b60dd8e47ec84cabafc39d575b https://git.kernel.org/stable/c/799900f01792cf8b525a44764f065f83fcafd468