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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
2323b276308a5da5774b778f39c7fd94b2a3022a to < cc62dd07644871b6b614025be0e80bc3fa588064affected2323b276308a5da5774b778f39c7fd94b2a3022a to < 41ddda793f72d24bad4fa523405dfd57f84afbb2affected2323b276308a5da5774b778f39c7fd94b2a3022a to < 9108d867a884b0c2e0dd51cbc4242d6408418dc7affected2323b276308a5da5774b778f39c7fd94b2a3022a to < 200a88e25f86d675f51cddb885e4dfe95aa7ea0daffected2323b276308a5da5774b778f39c7fd94b2a3022a to < 6547603b5590955bc607abdfaedfba324da4d720affected2323b276308a5da5774b778f39c7fd94b2a3022a to < b8f58c5ee4f983c5693fb43b9e9c9e10b6b1009eaffected2323b276308a5da5774b778f39c7fd94b2a3022a to < 5f672f6dd52081b23d3d5355eb3b1045ad0a64bbaffected2323b276308a5da5774b778f39c7fd94b2a3022a to < 71424db0ebb5f484fa3f386910f8ce9da95b8b2eaffected
Linux Linux
Default version status: affected
2.6.30affected0 to < 2.6.30unaffected5.10.275 to ≤ 5.10.*unaffected5.15.226 to ≤ 5.15.*unaffected6.1.193 to ≤ 6.1.*unaffected6.6.163 to ≤ 6.6.*unaffected6.12.119 to ≤ 6.12.*unaffected6.18.65 to ≤ 6.18.*unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected
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 ↗