In the Linux kernel, the following vulnerability has been resolved: comedi: dt2814: 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. dt2814 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.
https://git.kernel.org/stable/c/f0d80649f670d27eb33dc8341cdb26c2b90f29d0
https://git.kernel.org/stable/c/b5515a05595915d06a13238fcf6336402e690fbb
https://git.kernel.org/stable/c/a5054e7c42e7a9d95842c442d577fea1c32df899
https://git.kernel.org/stable/c/875a674b7a12271dcb66eeb63d5c01714f2c0320
https://git.kernel.org/stable/c/81026c2b3f9096cdfdfa02918f94865629fb7f90
https://git.kernel.org/stable/c/78d5a00032324b48eb2b38b037a2085e2d0c2e3b
https://git.kernel.org/stable/c/25c93efa84a27301a3e7b71114eeea6a603a6e00
https://git.kernel.org/stable/c/21e01e5000c557c74ead4b8a20b235a53a7f1eda