CVE-2025-71191: dmaengine: at_hdmac: fix device leak on of_dma_xlate()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: at_hdmac: fix device leak on of_dma_xlate()
Make sure to drop the reference taken when looking up the DMA platform device during of_dma_xlate() when releasing channel resources.
Note that commit 3832b78b3ec2 ("dmaengine: at_hdmac: add missing put_device() call in at_dma_xlate()") fixed the leak in a couple of error paths but the reference is still leaking on successful allocation.
The Linux kernel CVE team has assigned CVE-2025-71191 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.10 with commit bbe89c8e3d598129b728d1388c3ad9abe4e8e261 and fixed in 6.6.122 with commit 987c71671367f42460689b78244d7b894c50999a Issue introduced in 3.10 with commit bbe89c8e3d598129b728d1388c3ad9abe4e8e261 and fixed in 6.12.67 with commit 6a86cf2c09e149d5718a5b7090545f7566da9334 Issue introduced in 3.10 with commit bbe89c8e3d598129b728d1388c3ad9abe4e8e261 and fixed in 6.18.7 with commit f3c23b7e941349505c3d40de2cc0acd93d9ac057 Issue introduced in 3.10 with commit bbe89c8e3d598129b728d1388c3ad9abe4e8e261 and fixed in 6.19-rc6 with commit b9074b2d7a230b6e28caa23165e9d8bc0677d333
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-71191
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/at_hdmac.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/987c71671367f42460689b78244d7b894c50999a https://git.kernel.org/stable/c/6a86cf2c09e149d5718a5b7090545f7566da9334 https://git.kernel.org/stable/c/f3c23b7e941349505c3d40de2cc0acd93d9ac057 https://git.kernel.org/stable/c/b9074b2d7a230b6e28caa23165e9d8bc0677d333