Description
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.
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
a211ea977a4127a88fe0a5c4846e33d0e8b2309f to < a5054e7c42e7a9d95842c442d577fea1c32df899affecteda211ea977a4127a88fe0a5c4846e33d0e8b2309f to < b5515a05595915d06a13238fcf6336402e690fbbaffecteda211ea977a4127a88fe0a5c4846e33d0e8b2309f to < 21e01e5000c557c74ead4b8a20b235a53a7f1edaaffecteda211ea977a4127a88fe0a5c4846e33d0e8b2309f to < f0d80649f670d27eb33dc8341cdb26c2b90f29d0affecteda211ea977a4127a88fe0a5c4846e33d0e8b2309f to < 25c93efa84a27301a3e7b71114eeea6a603a6e00affecteda211ea977a4127a88fe0a5c4846e33d0e8b2309f to < 78d5a00032324b48eb2b38b037a2085e2d0c2e3baffecteda211ea977a4127a88fe0a5c4846e33d0e8b2309f to < 875a674b7a12271dcb66eeb63d5c01714f2c0320affecteda211ea977a4127a88fe0a5c4846e33d0e8b2309f to < 81026c2b3f9096cdfdfa02918f94865629fb7f90affected
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/a5054e7c42e7a9d95842c442d577fea1c32df899 ↗
- https://git.kernel.org/stable/c/b5515a05595915d06a13238fcf6336402e690fbb ↗
- https://git.kernel.org/stable/c/21e01e5000c557c74ead4b8a20b235a53a7f1eda ↗
- https://git.kernel.org/stable/c/f0d80649f670d27eb33dc8341cdb26c2b90f29d0 ↗
- https://git.kernel.org/stable/c/25c93efa84a27301a3e7b71114eeea6a603a6e00 ↗
- https://git.kernel.org/stable/c/78d5a00032324b48eb2b38b037a2085e2d0c2e3b ↗
- https://git.kernel.org/stable/c/875a674b7a12271dcb66eeb63d5c01714f2c0320 ↗
- https://git.kernel.org/stable/c/81026c2b3f9096cdfdfa02918f94865629fb7f90 ↗