CVE-2026-139406: comedi: pcmuio: validate the IRQs supplied by userspace
In the Linux kernel, the following vulnerability has been resolved:
comedi: pcmuio: validate the IRQs supplied by userspace
comedi boards are configured through the COMEDIDEVCONFIG ioctl, so it->options[1] is a number chosen by userspace. pcmuio passes it to requestirq() without checking it first, which lets an interrupt owned by another irqdomain -- a PCI device's IO-APIC GSI, for instance -- be claimed for this board. When the owner of that interrupt is later released the descriptor is freed while this driver's handler is still installed on it.
Every interrupt this board can assert is a legacy ISA one, so the ISA range is the right bound; it is also sufficient, because mpchipdata->isairq is set only by allocisairqfromdomain() and mpunmapirq() returns early when it is set.
Bound the value before requesting it, as das16m1.c already does. An out-of-range value is ignored rather than rejected, so the board still attaches without interrupt support, exactly as it does today when requestirq() fails.
This board takes two interrupts, one per ASIC, so options[1] and options[2] both need the check. The existing options[2] == dev->irq case is left alone: it covers both ASICs sharing one interrupt and neither having one, and by then options[1] has already been validated.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Validate both user-supplied IRQ values (options[1] and options[2]) against the legacy ISA IRQ range before calling request_irq(); ignore out-of-range values and continue without interrupt support.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel comedi pcmuio driver and configuring a supported board through the COMEDI_DEVCONFIG ioctl are exposed when userspace supplies out-of-range IRQ values in options[1] or options[2]. The issue concerns boards whose interrupts are legacy ISA interrupts.
What does an attacker or triggering user need to do?
They need the ability to configure the comedi board through COMEDI_DEVCONFIG and provide an IRQ number. The vulnerable driver passed user-selected IRQ values to request_irq() without first restricting them to the ISA IRQ range.
What is the consequence of using an invalid IRQ value?
The driver can claim an interrupt belonging to another IRQ domain, such as a PCI device IO-APIC GSI. If that interrupt's legitimate owner is later released, its descriptor can be freed while the pcmuio driver's handler remains installed.
What happens after the fix if an out-of-range IRQ is configured?
The out-of-range IRQ is ignored rather than rejected. The board still attaches, but without interrupt support for that IRQ, matching the existing behavior when request_irq() fails.