CVE-2026-139409: comedi: dt2814: validate the IRQ supplied by userspace
In the Linux kernel, the following vulnerability has been resolved:
comedi: dt2814: validate the IRQ supplied by userspace
comedi boards are configured through the COMEDIDEVCONFIG ioctl, so it->options[1] is a number chosen by userspace. dt2814 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the comedi dt2814 driver, validate and bound the userspace-supplied IRQ value before calling request_irq().