CVE-2026-139406: comedi: pcmuio: validate the IRQs supplied by userspace

Published Nov 30, 2026
·
Updated

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

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. 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

Nov 30, 2026
CVE Published
via MITRE·01:34 PM
Data Sourced
via MITRE·01:34 PM
Description

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203