comedi: ni_atmio16d: validate the IRQ supplied by userspace
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
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.
| Product | Versions |
|---|---|
| Linux Linux | 2323b276308a5da5774b778f39c7fd94b2a3022a to before cc62dd07644871b6b614025be0e80bc3fa588064 Affected2323b276308a5da5774b778f39c7fd94b2a3022a to before 41ddda793f72d24bad4fa523405dfd57f84afbb2 Affected2323b276308a5da5774b778f39c7fd94b2a3022a to before 9108d867a884b0c2e0dd51cbc4242d6408418dc7 Affected2323b276308a5da5774b778f39c7fd94b2a3022a to before 200a88e25f86d675f51cddb885e4dfe95aa7ea0d Affected2323b276308a5da5774b778f39c7fd94b2a3022a to before 6547603b5590955bc607abdfaedfba324da4d720 Affected2323b276308a5da5774b778f39c7fd94b2a3022a to before b8f58c5ee4f983c5693fb43b9e9c9e10b6b1009e Affected2323b276308a5da5774b778f39c7fd94b2a3022a to before 5f672f6dd52081b23d3d5355eb3b1045ad0a64bb Affected2323b276308a5da5774b778f39c7fd94b2a3022a to before 71424db0ebb5f484fa3f386910f8ce9da95b8b2e Affected |
| Linux Linux | 2.6.30 Affectedbefore 2.6.30 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/cc62dd07644871b6b614025be0e80bc3fa588064
- https://git.kernel.org/stable/c/41ddda793f72d24bad4fa523405dfd57f84afbb2
- https://git.kernel.org/stable/c/9108d867a884b0c2e0dd51cbc4242d6408418dc7
- https://git.kernel.org/stable/c/200a88e25f86d675f51cddb885e4dfe95aa7ea0d
- https://git.kernel.org/stable/c/6547603b5590955bc607abdfaedfba324da4d720
- https://git.kernel.org/stable/c/b8f58c5ee4f983c5693fb43b9e9c9e10b6b1009e
- https://git.kernel.org/stable/c/5f672f6dd52081b23d3d5355eb3b1045ad0a64bb
- https://git.kernel.org/stable/c/71424db0ebb5f484fa3f386910f8ce9da95b8b2e
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.