CVE-2026-139408

comedi: dmm32at: 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: dmm32at: 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. dmm32at 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.

Analysis

AI-generated

Technical impact

The vulnerability resides in the Linux kernel's COMEDI dmm32at driver. The driver accepts an IRQ number from userspace through the COMEDI_DEVCONFIG ioctl and passes it directly to request_irq() without validation. This permits a user to specify an interrupt line that belongs to a different irqdomain, such as a PCI device’s IO‑APIC GSI. If the original owner later releases that interrupt, the descriptor is freed while the dmm32at handler remains installed, which may allow the attacker to trigger the handler and execute code at kernel level.

Affected Systems

Any Linux kernel that builds the COMEDI subsystem with the dmm32at module may be affected. The description does not reference a specific release, so kernels from various distributions that ship with the default COMEDI driver could be vulnerable unless the commit that bounds the IRQ value has already been applied. No vendor‑specific product name or version is given, but the affected component is the kernel itself.

Risk and Exploitability

Exploitation requires a local process that can invoke the ioctl and supply the IRQ parameter. The documentation does not state which users have access to the device node, so if the ioctl is world‑accessible, the vulnerability could be exploited by any local user, enabling privilege escalation; if access is restricted to privileged users, the attack is limited to those processes. The author's note indicates that the driver already ignores out‑of‑range values, allowing the board to attach without interrupt support if request_irq() fails, but the unchecked validation allows a hijack scenario until a kernel update is performed. No EPSS, CVSS, or KEV metrics are provided.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Deploy a Linux kernel that includes the commit which enforces IRQ validation for COMEDI dmm32at devices.
  • If an updated kernel is not yet available, disable the dmm32at driver by removing it from the system or preventing it from loading via kernel parameters.
  • Restrict access to the COMEDI device node (e.g., /dev/comedi0) so that only privileged users can invoke the ioctl that configures IRQs.

Generated by OpenCVE AI on December 1, 2026 at 11:55 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-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: dmm32at: 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. dmm32at 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.
Title comedi: dmm32at: 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