CVE-2025-38479: dmaengine: fsl-edma: free irq correctly in remove path
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: fsl-edma: free irq correctly in remove path
Add fsl_edma->txirq/errirq check to avoid below warning because no errirq at i.MX9 platform. Otherwise there will be kernel dump:
WARNING: CPU: 0 PID: 11 at kernel/irq/devres.c:144 devm_free_irq+0x74/0x80 Modules linked in: CPU: 0 UID: 0 PID: 11 Comm: kworker/u8:0 Not tainted 6.12.0-rc7#18 Hardware name: NXP i.MX93 11X11 EVK board (DT) Workqueue: events_unbound deferred_probe_work_func pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : devm_free_irq+0x74/0x80 lr : devm_free_irq+0x48/0x80 Call trace: devm_free_irq+0x74/0x80 (P) devm_free_irq+0x48/0x80 (L) fsl_edma_remove+0xc4/0xc8 platform_remove+0x28/0x44 device_remove+0x4c/0x80
The Linux kernel CVE team has assigned CVE-2025-38479 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.11 with commit 44eb827264de4f14d8317692441e13f5e2aadbf2 and fixed in 6.12.23 with commit 55e2dbe2ba787d4fc2306f6bb2f43fb32176e184 Issue introduced in 6.11 with commit 44eb827264de4f14d8317692441e13f5e2aadbf2 and fixed in 6.13.11 with commit 38ff8769074db27387cb2323aaa751e59d168e6a Issue introduced in 6.11 with commit 44eb827264de4f14d8317692441e13f5e2aadbf2 and fixed in 6.14.2 with commit f3834d2d68749e4760c27325149765930ad876fd Issue introduced in 6.11 with commit 44eb827264de4f14d8317692441e13f5e2aadbf2 and fixed in 6.15-rc1 with commit fa70c4c3c580c239a0f9e83a14770ab026e8d820
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-38479
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/fsl-edma-main.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/55e2dbe2ba787d4fc2306f6bb2f43fb32176e184 https://git.kernel.org/stable/c/38ff8769074db27387cb2323aaa751e59d168e6a https://git.kernel.org/stable/c/f3834d2d68749e4760c27325149765930ad876fd https://git.kernel.org/stable/c/fa70c4c3c580c239a0f9e83a14770ab026e8d820