{"id":"CVE-2026-139406","state":"PUBLISHED","title":"comedi: pcmuio: validate the IRQs supplied by userspace","description":"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.","publishedAt":"2026-11-30T13:34:27.722Z","updatedAt":"2026-11-30T13:34:27.722Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6baef150380d561a4d695a6be4fc509821c23611","status":"affected","lessThan":"afb4595fee62bcbe379ce0f0f665fcc7fb5c0c07","versionType":"git"},{"version":"6baef150380d561a4d695a6be4fc509821c23611","status":"affected","lessThan":"df654fe0296d16dadcfa47a1a27e0b030ce1a307","versionType":"git"},{"version":"6baef150380d561a4d695a6be4fc509821c23611","status":"affected","lessThan":"86f983a4e084ed3375174fc6cc041cbda0c215e6","versionType":"git"},{"version":"6baef150380d561a4d695a6be4fc509821c23611","status":"affected","lessThan":"f73fd5263b3b9c3f1b0281f174666e57e122e976","versionType":"git"},{"version":"6baef150380d561a4d695a6be4fc509821c23611","status":"affected","lessThan":"7360e37cd04b545e57230a3c8c2a252689c71161","versionType":"git"},{"version":"6baef150380d561a4d695a6be4fc509821c23611","status":"affected","lessThan":"45b3c79f58c0c211192eedd69b4006636aa5a21a","versionType":"git"},{"version":"6baef150380d561a4d695a6be4fc509821c23611","status":"affected","lessThan":"565a33552d3b2b2b203d0c4d2b01200dcf07854d","versionType":"git"},{"version":"6baef150380d561a4d695a6be4fc509821c23611","status":"affected","lessThan":"9c325b21bba99e597771137fc11b9427c86618d8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/comedi/drivers/pcmuio.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.30","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.30","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/comedi/drivers/pcmuio.c"]}],"references":["https://git.kernel.org/stable/c/afb4595fee62bcbe379ce0f0f665fcc7fb5c0c07","https://git.kernel.org/stable/c/df654fe0296d16dadcfa47a1a27e0b030ce1a307","https://git.kernel.org/stable/c/86f983a4e084ed3375174fc6cc041cbda0c215e6","https://git.kernel.org/stable/c/f73fd5263b3b9c3f1b0281f174666e57e122e976","https://git.kernel.org/stable/c/7360e37cd04b545e57230a3c8c2a252689c71161","https://git.kernel.org/stable/c/45b3c79f58c0c211192eedd69b4006636aa5a21a","https://git.kernel.org/stable/c/565a33552d3b2b2b203d0c4d2b01200dcf07854d","https://git.kernel.org/stable/c/9c325b21bba99e597771137fc11b9427c86618d8"],"weaknesses":[],"ingestedAt":"2026-11-30T13:48:04.491Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139406.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139406","state":"PUBLISHED","datePublished":"2026-11-30T13:34:27.722Z","dateUpdated":"2026-11-30T13:34:27.722Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.931Z"},"containers":{"cna":{"title":"comedi: pcmuio: validate the IRQs supplied by userspace","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6baef150380d561a4d695a6be4fc509821c23611","status":"affected","lessThan":"afb4595fee62bcbe379ce0f0f665fcc7fb5c0c07","versionType":"git"},{"version":"6baef150380d561a4d695a6be4fc509821c23611","status":"affected","lessThan":"df654fe0296d16dadcfa47a1a27e0b030ce1a307","versionType":"git"},{"version":"6baef150380d561a4d695a6be4fc509821c23611","status":"affected","lessThan":"86f983a4e084ed3375174fc6cc041cbda0c215e6","versionType":"git"},{"version":"6baef150380d561a4d695a6be4fc509821c23611","status":"affected","lessThan":"f73fd5263b3b9c3f1b0281f174666e57e122e976","versionType":"git"},{"version":"6baef150380d561a4d695a6be4fc509821c23611","status":"affected","lessThan":"7360e37cd04b545e57230a3c8c2a252689c71161","versionType":"git"},{"version":"6baef150380d561a4d695a6be4fc509821c23611","status":"affected","lessThan":"45b3c79f58c0c211192eedd69b4006636aa5a21a","versionType":"git"},{"version":"6baef150380d561a4d695a6be4fc509821c23611","status":"affected","lessThan":"565a33552d3b2b2b203d0c4d2b01200dcf07854d","versionType":"git"},{"version":"6baef150380d561a4d695a6be4fc509821c23611","status":"affected","lessThan":"9c325b21bba99e597771137fc11b9427c86618d8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/comedi/drivers/pcmuio.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.30","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.30","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/comedi/drivers/pcmuio.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/afb4595fee62bcbe379ce0f0f665fcc7fb5c0c07"},{"url":"https://git.kernel.org/stable/c/df654fe0296d16dadcfa47a1a27e0b030ce1a307"},{"url":"https://git.kernel.org/stable/c/86f983a4e084ed3375174fc6cc041cbda0c215e6"},{"url":"https://git.kernel.org/stable/c/f73fd5263b3b9c3f1b0281f174666e57e122e976"},{"url":"https://git.kernel.org/stable/c/7360e37cd04b545e57230a3c8c2a252689c71161"},{"url":"https://git.kernel.org/stable/c/45b3c79f58c0c211192eedd69b4006636aa5a21a"},{"url":"https://git.kernel.org/stable/c/565a33552d3b2b2b203d0c4d2b01200dcf07854d"},{"url":"https://git.kernel.org/stable/c/9c325b21bba99e597771137fc11b9427c86618d8"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:34:27.722Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.30","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.30","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.30","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.30","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.30","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.30","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.30","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.30","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}