CVE-2026-138858

soc: fsl: dpio: Free the IRQ before releasing the I/O object

Published Nov 30, 2026 CVSS 3.1 · 4.1 Medium EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

soc: fsl: dpio: Free the IRQ before releasing the I/O object

The DPIO interrupt handler accesses priv->io, but dpaa2_dpio_remove()
releases that object before tearing down the interrupts. The IRQ was
requested with devm_request_irq(), and unregister_dpio_irq_handlers()
only clears its affinity hint. fsl_mc_free_irqs() returns IRQ resources
to the MC resource pool without freeing the handler. An interrupt can
therefore access the freed I/O object before devres releases the IRQ.

Explicitly free the managed IRQ in unregister_dpio_irq_handlers() before
returning its resource to the pool, and perform IRQ teardown before
releasing the I/O object. This also waits for an in-flight handler while
the object is still valid.

This issue was identified during our ongoing static-analysis research
while reviewing kernel code.

Analysis

AI-generated

Technical impact

The vulnerability occurs when the DPIO interrupt handler accesses a hardware I/O object after that object has been released. At removal time, dpaa2_dpio_remove() frees the object while the IRQ handler remains registered. The handler thus dereferences a freed pointer, which can lead to execution of unintended code or kernel crash. The flaw is a classic use‑after‑free bug (CWE‑416) that compromises kernel integrity and availability.

Affected Systems

All Linux kernel builds that include the fsl DPIO driver and use the dpaa2_dpio_remove() path are affected. No specific kernel release is listed, but the issue was identified in recent kernel development branches, so all binaries built from those branches before the patch are vulnerable.

Risk and Exploitability

The use‑after‑free can be triggered only when an interrupt occurs for the affected DPIO device after the removal process has begun. While the CVSS score and EPSS are not provided, the kernel context of the flaw suggests a high impact. Exploitation would likely require local or privileged access to manipulate device state or timing, but the lack of a publicly listed KEV entry indicates no known widespread exploitation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the commit that frees the IRQ before the I/O object is released, as referenced in the provided git links.
  • If a kernel update is not possible, keep the affected device driver disabled or remove the device module until the patch is applied.
  • Apply the patch manually by merging the changes from the cited commit hash into the running kernel source and rebuild, ensuring that unregister_dpio_irq_handlers() releases the IRQ resource before returning it to the pool.

Generated by OpenCVE AI on November 30, 2026 at 17:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Weaknesses CWE-825
Vendors & Products Linux linux
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.1, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: soc: fsl: dpio: Free the IRQ before releasing the I/O object The DPIO interrupt handler accesses priv->io, but dpaa2_dpio_remove() releases that object before tearing down the interrupts. The IRQ was requested with devm_request_irq(), and unregister_dpio_irq_handlers() only clears its affinity hint. fsl_mc_free_irqs() returns IRQ resources to the MC resource pool without freeing the handler. An interrupt can therefore access the freed I/O object before devres releases the IRQ. Explicitly free the managed IRQ in unregister_dpio_irq_handlers() before returning its resource to the pool, and perform IRQ teardown before releasing the I/O object. This also waits for an in-flight handler while the object is still valid. This issue was identified during our ongoing static-analysis research while reviewing kernel code.
Title soc: fsl: dpio: Free the IRQ before releasing the I/O object
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-825

    Expired Pointer Dereference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:25 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:25 PM