CVE-2026-139407

comedi: pcmmio: validate the IRQ supplied by userspace

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

comedi: pcmmio: 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. pcmmio 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 board's interrupt is routed in software rather than jumpered, and the
driver notes that "any IRQ from 1-15 is OK", so the ISA range is exactly
the right bound.

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 Linux kernel’s comedi pcmmio driver accepts an IRQ number from user space via the COMEDI_DEVCONFIG ioctl and forwards it to request_irq without validating that the requested IRQ belongs to the driver’s domain. This flaw allows a process that has permission to call the ioctl to claim an interrupt line owned by another device, such as a PCI device’s IO‑APIC GSI. If the original owner of the IRQ later releases it, the driver’s handler remains installed on the line, potentially causing the system to redirect interrupts to the driver’s code. The vulnerability is an example of improper input validation and can lead to privilege escalation or arbitrary code execution. It is identified by CWE-20.

Affected Systems

All Linux kernels that include the comedi pcmmio driver compiled as a module or built‑in, with kernels dated before the patch that adds IRQ‑range validation. Vendor: Linux; Product: Linux kernel. No specific distribution versions are listed, but any system using a vulnerable kernel is affected until the driver is updated or the module is removed.

Risk and Exploitability

Exploitation requires local access to invoke the COMEDI_DEVCONFIG ioctl, so the attack surface is limited to users who can interact with the device or load the module, typically root or users with CAP_SYS_RAWIO. Once the driver acquires the IRQ, the attacker’s handler can be executed when the interrupt fires, providing a local privilege escalation path. The EPSS score is not available, the CVSS score is not provided, and the vulnerability is not listed in the CISA KEV catalog, indicating no known public exploitation. Nonetheless, the widespread use of the driver and the nature of the flaw make local exploitation feasible for an attacker with sufficient privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel update that incorporates the IRQ‑range validation patch for the comedi pcmmio driver.
  • If an immediate kernel upgrade is not possible, unload the comedi module or compile it with a parameter that limits its usage to trusted users only.
  • Restrict access to the COMEDI_DEVCONFIG ioctl by setting appropriate file permissions on the device node (e.g., root‑only) or configuring the system to drop capabilities required to load or configure the driver from untrusted processes.

Generated by OpenCVE AI on December 1, 2026 at 11:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-20 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: pcmmio: 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. pcmmio 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 board's interrupt is routed in software rather than jumpered, and the driver notes that "any IRQ from 1-15 is OK", so the ISA range is exactly the right bound. 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: pcmmio: 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-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