CVE-2026-138859: soc: fsl: dpio: Fix cleanup on IRQ registration failure
In the Linux kernel, the following vulnerability has been resolved:
soc: fsl: dpio: Fix cleanup on IRQ registration failure
IRQ registration happens after dpaa2iocreate(), but its failure path only releases the IRQ resources and the MC portal. The I/O object stays allocated and published in the service list and per-CPU lookup table, while devres unmaps its portal registers after probe fails.
Call dpaa2iodown() on IRQ registration failure to remove the object from those lookup structures and free it. Reorder the error labels so that a failed dpaa2iocreate() still skips this cleanup.
Remove unregisterdpioirqhandlers() from the probe error path, since no IRQ handler or affinity hint has been installed when registration fails.
This issue was identified during our ongoing static-analysis research while reviewing kernel code.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.5 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.6 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1 - Compensating control
On IRQ registration failure after dpaa2_io_create(), call dpaa2_io_down() to remove and free the I/O object; remove unregister_dpio_irq_handlers() from this probe error path, where no IRQ handler or affinity hint has been installed.
Event History
Frequently Asked Questions
When can this issue be triggered?
It is triggered when IRQ registration fails after dpaa2_io_create() has successfully created the I/O object during DPIO probe. A failure before dpaa2_io_create() succeeds does not enter the affected cleanup path.
What is left behind after the failed probe?
The I/O object remains allocated and published in the service list and per-CPU lookup table. At the same time, devres unmaps its portal registers after the probe failure, leaving those published references associated with an object whose portal registers have been unmapped.
How can I determine whether a system encountered the affected condition?
Look for a DPIO probe failure specifically caused by IRQ registration failing after I/O object creation. The affected condition leaves the object present in the DPIO service list and per-CPU lookup table despite the failed probe.
What does the fix change?
The fix calls dpaa2_io_down() when IRQ registration fails, removing the I/O object from the lookup structures and freeing it. It also avoids calling unregister_dpio_irq_handlers() on this path because no IRQ handler or affinity hint was installed.