{"id":"CVE-2026-139406","aliases":["CVE-2026-139406"],"related":[],"kind":"vulnerability","state":"published","title":"comedi: pcmuio: validate the IRQs supplied by userspace","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncomedi: pcmuio: validate the IRQs supplied by userspace\n\ncomedi boards are configured through the COMEDI_DEVCONFIG ioctl, so\nit->options[1] is a number chosen by userspace. pcmuio passes it to\nrequest_irq() without checking it first, which lets an interrupt owned by\nanother irqdomain -- a PCI device's IO-APIC GSI, for instance -- be\nclaimed for this board. When the owner of that interrupt is later\nreleased the descriptor is freed while this driver's handler is still\ninstalled on it.\n\nEvery interrupt this board can assert is a legacy ISA one, so the ISA\nrange is the right bound; it is also sufficient, because\nmp_chip_data->isa_irq is set only by alloc_isa_irq_from_domain() and\nmp_unmap_irq() returns early when it is set.\n\nBound the value before requesting it, as das16m1.c already does. An\nout-of-range value is ignored rather than rejected, so the board still\nattaches without interrupt support, exactly as it does today when\nrequest_irq() fails.\n\nThis board takes two interrupts, one per ASIC, so options[1] and\noptions[2] both need the check. The existing options[2] == dev->irq case\nis left alone: it covers both ASICs sharing one interrupt and neither\nhaving one, and by then options[1] has already been validated.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncomedi: pcmuio: validate the IRQs supplied by userspace\n\ncomedi boards are configured through the COMEDI_DEVCONFIG ioctl, so\nit->options[1] is a number chosen by userspace. pcmuio passes it to\nrequest_irq() without checking it first, which lets an interrupt owned by\nanother irqdomain -- a PCI device's IO-APIC GSI, for instance -- be\nclaimed for this board. When the owner of that interrupt is later\nreleased the descriptor is freed while this driver's handler is still\ninstalled on it.\n\nEvery interrupt this board can assert is a legacy ISA one, so the ISA\nrange is the right bound; it is also sufficient, because\nmp_chip_data->isa_irq is set only by alloc_isa_irq_from_domain() and\nmp_unmap_irq() returns early when it is set.\n\nBound the value before requesting it, as das16m1.c already does. An\nout-of-range value is ignored rather than rejected, so the board still\nattaches without interrupt support, exactly as it does today when\nrequest_irq() fails.\n\nThis board takes two interrupts, one per ASIC, so options[1] and\noptions[2] both need the check. The existing options[2] == dev->irq case\nis left alone: it covers both ASICs sharing one interrupt and neither\nhaving one, and by then options[1] has already been validated.","source":"cvelist"}],"published":"2026-11-30T13:34:27.722Z","modified":"2026-11-30T14:19:09.117Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"6baef150380d561a4d695a6be4fc509821c23611","fixed":"afb4595fee62bcbe379ce0f0f665fcc7fb5c0c07","status":"affected"},{"type":"git","introduced":"6baef150380d561a4d695a6be4fc509821c23611","fixed":"df654fe0296d16dadcfa47a1a27e0b030ce1a307","status":"affected"},{"type":"git","introduced":"6baef150380d561a4d695a6be4fc509821c23611","fixed":"86f983a4e084ed3375174fc6cc041cbda0c215e6","status":"affected"},{"type":"git","introduced":"6baef150380d561a4d695a6be4fc509821c23611","fixed":"f73fd5263b3b9c3f1b0281f174666e57e122e976","status":"affected"},{"type":"git","introduced":"6baef150380d561a4d695a6be4fc509821c23611","fixed":"7360e37cd04b545e57230a3c8c2a252689c71161","status":"affected"},{"type":"git","introduced":"6baef150380d561a4d695a6be4fc509821c23611","fixed":"45b3c79f58c0c211192eedd69b4006636aa5a21a","status":"affected"},{"type":"git","introduced":"6baef150380d561a4d695a6be4fc509821c23611","fixed":"565a33552d3b2b2b203d0c4d2b01200dcf07854d","status":"affected"},{"type":"git","introduced":"6baef150380d561a4d695a6be4fc509821c23611","fixed":"9c325b21bba99e597771137fc11b9427c86618d8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.30","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.30","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/afb4595fee62bcbe379ce0f0f665fcc7fb5c0c07","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/df654fe0296d16dadcfa47a1a27e0b030ce1a307","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/86f983a4e084ed3375174fc6cc041cbda0c215e6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f73fd5263b3b9c3f1b0281f174666e57e122e976","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7360e37cd04b545e57230a3c8c2a252689c71161","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/45b3c79f58c0c211192eedd69b4006636aa5a21a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/565a33552d3b2b2b203d0c4d2b01200dcf07854d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9c325b21bba99e597771137fc11b9427c86618d8","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139406","url":"https://www.cve.org/CVERecord?id=CVE-2026-139406","licence":"CVE Terms of Use","modified":"2026-11-30T13:34:27.722Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139406","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139406","licence":"Public domain","modified":"2026-11-30T14:19:09.117Z"}],"updatedAt":"2026-11-30T14:33:02.432Z","epss":{"score":0.00211,"percentile":0.12002,"date":"2026-12-01T12:00:22.000Z"}}