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.