CVE-2026-139410: comedi: ni_atmio16d: validate the IRQ supplied by userspace

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

comedi: niatmio16d: validate the IRQ supplied by userspace

comedi boards are configured through the COMEDIDEVCONFIG ioctl, so it->options[1] is a number chosen by userspace. niatmio16d 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.

The driver already documents which interrupts the board can assert -- "0 == no irq; or 3,4,5,6,7,9,10,11,12,14,15" -- so use exactly that set rather than the whole ISA range.

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

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Before calling request_irq(), validate the userspace-supplied IRQ: accept 0 as no IRQ, or exactly 3, 4, 5, 6, 7, 9, 10, 11, 12, 14, or 15; reject other values.

Event History

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

Frequently Asked Questions

1

Who is exposed to this issue?

Systems using the Linux kernel's comedi ni_atmio16d driver are exposed when a userspace caller configures the board through the COMEDI_DEVCONFIG ioctl and supplies an invalid IRQ value. The issue depends on access to configure the Comedi board; it is not described as occurring during ordinary device operation without that configuration input.

2

What does an attacker need to do to trigger the problem?

They need to provide an IRQ number outside the board's documented supported set through COMEDI_DEVCONFIG. Before the fix, the driver could pass that value to request_irq() and claim an interrupt belonging to another irqdomain, such as a PCI device IO-APIC GSI.

3

Which IRQ values are valid for this board?

The documented values are 0 for no IRQ, or IRQs 3, 4, 5, 6, 7, 9, 10, 11, 12, 14, and 15. The fix restricts requests to exactly this set rather than accepting the wider ISA IRQ range.

4

What happens after the fix if userspace supplies an unsupported IRQ?

The unsupported value is ignored rather than rejected. The board still attaches, but without interrupt support, 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