CVE-2026-139410

comedi: ni_atmio16d: validate the IRQ supplied by userspace

Published Nov 30, 2026 CVSS 3.1 · 4.4 Medium EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

comedi: ni_atmio16d: validate the IRQ supplied by userspace

comedi boards are configured through the COMEDI_DEVCONFIG ioctl, so
it->options[1] is a number chosen by userspace. ni_atmio16d passes it to
request_irq() 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
request_irq() fails.

Analysis

AI-generated

Technical impact

The comedi driver for the NI ATMIO16D board allows userspace to supply an IRQ number through the COMEDI_DEVCONFIG ioctl. The driver forwards that number directly to request_irq without verifying it is one of the board’s supported IRQs. This omission can cause the driver to claim an interrupt line that belongs to another device, such as a PCI device’s IO‑APIC GSI, and install its own handler on it. When the original owner releases the IRQ, the underlying descriptor is freed while the attacker’s handler remains active, enabling execution of driver code in kernel space and potentially allowing the attacker to compromise system integrity.

Affected Systems

Linux kernels that include the comedi NI ATMIO16D device driver. The vulnerability exists in any kernel version where the ni_atmio16d driver is compiled in or loaded as a module. No specific vendor, distribution, or kernel version information is supplied in the CVE data.

Risk and Exploitability

The CVSS, EPSS, and KEV metrics are not available, so no official severity score is provided. However, the flaw can be exploited by any user who can open the comedi device and issue the COMEDI_DEVCONFIG ioctl, a privilege that typically requires root or device‑elevated access. By hijacking an interrupt owned by another device, an attacker could execute arbitrary code in kernel context or cause a denial of service by destroying the other device’s IRQ descriptor. Although no widespread exploits have been reported, the potential for privilege escalation and system destabilization makes this a high‑risk local attack vector.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the patched comedi NI ATMIO16D driver, which validates the IRQ before calling request_irq.
  • If an update is not available, rebuild the kernel with the patch applied to the ni_atmio16d driver or disable the driver module entirely.
  • Restrict userspace access to the COMEDI_DEVCONFIG ioctl by adjusting device permissions or applying SELinux/AppArmor policies to limit which processes can modify the device configuration.

Generated by OpenCVE AI on December 1, 2026 at 06:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-20
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: comedi: ni_atmio16d: validate the IRQ supplied by userspace comedi boards are configured through the COMEDI_DEVCONFIG ioctl, so it->options[1] is a number chosen by userspace. ni_atmio16d passes it to request_irq() 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 request_irq() fails.
Title comedi: ni_atmio16d: validate the IRQ supplied by userspace
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-825

    Expired Pointer Dereference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:34 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:34 PM