⚠️

Disclaimer & Liability

The content provided on this website is for educational, research, and security awareness purposes only. Any unauthorized, illegal, or abusive use of the information, tools, and techniques discussed is solely the responsibility of the user. The author and publisher assume no liability for any damages, injuries, or consequences resulting from the misuse of this content.

CVE-2026-139408: Linux Comedi dmm32at IRQ Validation Flaw | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-139408: Linux Comedi dmm32at IRQ Validation Flaw

Executive summary

CVE-2026-139408 affects the Linux kernel Comedi driver for the dmm32at board. Userspace can configure the board through the COMEDI_DEVCONFIG ioctl and place a selected interrupt number in it->options[1]. The driver previously passed that value directly to request_irq() without confirming that it belonged to the legacy ISA interrupt range the board can legitimately assert.

That missing validation allows the dmm32at driver to claim an interrupt associated with another irqdomain, such as a PCI device's IO-APIC GSI. The advisory describes a subsequent failure sequence: the original interrupt owner releases the resource, its descriptor is freed, and the dmm32at handler remains installed. This leaves a stale interrupt-handler condition and a potential use-after-free that could cause crashes, denial of service, or more serious memory corruption.

The issue is local and hardware-dependent. Access to the affected Comedi device and its configuration interface is required, and the available record provides no evidence of exploitation in the wild or public weaponized code. No CVSS score or vector is present in the supplied context.

Severity assessment: Low. The vulnerability represents a genuine kernel memory-safety and resource-ownership flaw, but its reachable surface is narrow, depends on specialized Comedi hardware and local configuration access, and has no documented exploitation activity.

Affected systems

The affected component is the Linux kernel comedi: dmm32at driver. Relevant systems expose a usable dmm32at Comedi board and permit local userspace to configure it through COMEDI_DEVCONFIG.

The supplied context does not enumerate the Linux kernel releases, stable branches, distribution packages, or vendor builds affected by the flaw. It also does not identify the exact upstream commit or confirm which backports contain the correction. The NVD record states that the vulnerability has been resolved, but package-level deployment status must be confirmed through the relevant distribution or vendor advisory.

Because the defect resides in the kernel driver, application-level input filtering alone does not restore the intended interrupt-ownership boundary. Access controls around Comedi device nodes and COMEDI_DEVCONFIG remain relevant as an exposure reduction, particularly where the board is not required for normal operation.

Root cause

The dmm32at driver accepts a userspace-controlled IRQ value through COMEDI_DEVCONFIG. That number is stored in it->options[1] and passed to request_irq() without first enforcing the board's valid legacy ISA IRQ bound.

Linux IRQ numbers are not necessarily confined to a single ownership domain. Without validation, the board can attempt to claim an interrupt already associated with another irqdomain, such as a PCI device's IO-APIC GSI. The advisory notes that the relevant ISA IRQ is set only by alloc_isa_irq_from_domain(), while mp_unmap_irq() returns early when mp_chip_data->isa_irq is set. Bounding the value before request_irq() preserves those domain and teardown assumptions.

The resolution follows the approach already used by das16m1.c: the IRQ is checked before it is requested. According to the supplied advisory, an out-of-range value is ignored rather than rejected, allowing the board to attach without interrupt support in a manner similar to a failed request_irq() call.

Attack path and impact

The described path begins when local userspace configures the affected board and supplies an IRQ value through COMEDI_DEVCONFIG. The dmm32at driver passes the value to request_irq(), allowing it to claim an interrupt that may remain associated with another irqdomain. If the original owner later releases that interrupt, the descriptor can be freed while the dmm32at handler is still installed.

The resulting stale-handler state provides a potential use-after-free condition involving the freed IRQ descriptor. Plausible outcomes include kernel warnings, crashes, denial of service, or potentially more serious memory corruption. The supplied material does not establish reliable code execution or a complete exploitation primitive.

Exploitation is materially constrained by several environmental requirements:

  • The attack path is local rather than remote.

  • A usable dmm32at Comedi board and exposed Comedi device are required.

  • The configuring process must be permitted to invoke COMEDI_DEVCONFIG.

  • Exploitation depends on interrupt ownership and release timing.

  • No known exploitation, public weaponized code, or CISA KEV listing is recorded in the supplied intelligence.

Mitigation

The upstream resolution validates the user-supplied IRQ before request_irq() and restricts it to the legacy ISA range appropriate for the dmm32at board. This prevents cross-domain interrupt claims and preserves the expected IRQ descriptor lifecycle. The compatibility behavior for an invalid value is to continue without interrupt support rather than reject the entire board configuration.

The appropriate deployment control is a Linux kernel containing the upstream correction for CVE-2026-139408. Because the provided context contains no exact commit, affected version range, or distribution package list, inclusion of the fix should be confirmed through the relevant distribution or vendor package changelog rather than inferred solely from kernel version.

Where a fixed kernel is not yet confirmed, reducing exposure can involve keeping Comedi device access and COMEDI_DEVCONFIG operations within trusted administrative workflows. Systems that do not require the dmm32at board may also limit loading of the affected Comedi driver. These controls reduce local reachability but do not replace the kernel-side validation.

Detection and verification

Potential forensic indicators include COMEDI_DEVCONFIG activity involving unexpected values in it->options[1], request_irq() failures, IRQ ownership conflicts, invalid or stale IRQ references, Comedi or dmm32at warnings, and kernel crashes following changes in PCI, IO-APIC, or Comedi device ownership. Log evidence is not guaranteed because the defect can occur before application-level errors become visible.

Verification also requires correlating the running kernel with the relevant distribution or vendor advisory. The supplied NVD record does not provide enough package information to determine fix availability solely from a kernel release number.

Overall assessment

CVE-2026-139408 is a locally reachable Linux kernel resource-ownership flaw caused by missing IRQ-range validation in the Comedi dmm32at driver. Its potential to leave a handler attached to a freed IRQ descriptor makes the issue more consequential than an ordinary configuration error, while hardware dependence, local access requirements, and the absence of exploitation evidence keep the assessed severity low. The resolution closes the cross-domain IRQ claim at the correct kernel boundary and maintains degraded operation when an invalid IRQ is supplied.

References

·
← News