CVE-2026-139406

comedi: pcmuio: validate the IRQs 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: pcmuio: validate the IRQs supplied by userspace

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

Every interrupt this board can assert is a legacy ISA one, so the ISA
range is the right bound; it is also sufficient, because
mp_chip_data->isa_irq is set only by alloc_isa_irq_from_domain() and
mp_unmap_irq() 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
request_irq() 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.

Analysis

AI-generated

Technical impact

The comedi pcmuio driver accepts interrupt request numbers supplied by userspace through an ioctl interface without validating them. A malicious userspace process can therefore pass an IRQ belonging to another device, causing the driver to claim that interrupt and install its own handler. If the original owner of the IRQ later releases it, the driver continues to run on a stale descriptor, which can lead to kernel crashes or a denial of service. The underlying weakness is improper input validation, which enables a local attacker to hijack kernel interrupt handling and potentially execute arbitrary code with kernel privileges.

Affected Systems

The vulnerability exists in the Linux kernel comedi subsystem for pcmuio boards, which are typically ISA‑based COMEDI hardware devices. Any Linux kernel version prior to the patch that introduces IRQ bounds checking in the pcmuio driver is affected. Embedded systems or servers that load the comedi driver for specialized hardware may be impacted.

Risk and Exploitability

The CVSS score is not provided, and the EPSS score is unavailable, but the attack requires local access to the device and relies on the ability to issue ioctls to the comedi driver. Because the flaw permits hijacking of kernel interrupt handling, the potential impact ranges from denial of service to local privilege escalation. The vulnerability is not listed in CISA KEV, indicating no confirmed exploits in the wild, but the local nature of the attack vector and the severity of the kernel code impact warrant prompt remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel or backport the commit that bounds and validates IRQ numbers before calling request_irq in the pcmuio driver
  • If a kernel update is not immediately possible, unload or blacklist the comedi pcmuio module so it cannot receive ioctl calls that could supply dangerous IRQ values
  • Restrict access to the /dev/comedi* device nodes or use a kernel security policy to ensure that only trusted users can invoke COMEDI_DEVCONFIG ioctls

Generated by OpenCVE AI on December 1, 2026 at 06:31 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
CWE-674
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: comedi: pcmuio: validate the IRQs supplied by userspace comedi boards are configured through the COMEDI_DEVCONFIG ioctl, so it->options[1] is a number chosen by userspace. pcmuio 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. Every interrupt this board can assert is a legacy ISA one, so the ISA range is the right bound; it is also sufficient, because mp_chip_data->isa_irq is set only by alloc_isa_irq_from_domain() and mp_unmap_irq() 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 request_irq() 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.
Title comedi: pcmuio: validate the IRQs 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-674

    Uncontrolled Recursion

  • 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