{"id":"CVE-2026-143007","state":"PUBLISHED","title":"comedi: ni_660x: don't poll without a DMA channel","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncomedi: ni_660x: don't poll without a DMA channel\n\nA counter command owns a MITE DMA channel from ni_660x_cmd() to\nni_660x_cancel(). A command does not only end by COMEDI_CANCEL: when the\nreader is too slow mite_sync_input_dma() sets COMEDI_CB_OVERFLOW, and\ncounter errors set COMEDI_CB_ERROR, and comedi_handle_events() then calls\n->cancel() from the interrupt handler. That releases the channel and\nclears counter->mite_chan, but s->busy stays set until the owner has read\nthe rest of the data and seen the end of the acquisition.\n\ndo_poll_ioctl() only looks at s->busy, so a COMEDI_POLL in that state\nends in mite_sync_dma(NULL, s), which dereferences the channel.\n\nTest the channel like ni_pcidio_poll() and ni_sync_ai_dma() do. The\npointer only changes under dev->mutex, which the ioctl holds, or in the\ninterrupt handler under interrupt_lock, which is taken here.","publishedAt":"2026-12-03T09:17:40.144Z","updatedAt":"2026-12-03T09:17:40.144Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"894db119734772c3694233bf2c9f7440a70d7736","status":"affected","lessThan":"0d09e99196a311db5e3ae75903bf554f74430de5","versionType":"git"},{"version":"894db119734772c3694233bf2c9f7440a70d7736","status":"affected","lessThan":"e12810354c0955ea94ac2b6ad579a0768fe38d7a","versionType":"git"},{"version":"894db119734772c3694233bf2c9f7440a70d7736","status":"affected","lessThan":"49b5388cc8b63c095f7a49c10a679368112f945c","versionType":"git"},{"version":"894db119734772c3694233bf2c9f7440a70d7736","status":"affected","lessThan":"caeb4970abc8f67aed5b64e8e71ce2d582301a95","versionType":"git"},{"version":"894db119734772c3694233bf2c9f7440a70d7736","status":"affected","lessThan":"5a0c88567a5ebbe24ecb7828e200f63ed972718f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/comedi/drivers/ni_660x.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.31","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.31","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc4","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/ni_660x.c"]}],"references":["https://git.kernel.org/stable/c/0d09e99196a311db5e3ae75903bf554f74430de5","https://git.kernel.org/stable/c/e12810354c0955ea94ac2b6ad579a0768fe38d7a","https://git.kernel.org/stable/c/49b5388cc8b63c095f7a49c10a679368112f945c","https://git.kernel.org/stable/c/caeb4970abc8f67aed5b64e8e71ce2d582301a95","https://git.kernel.org/stable/c/5a0c88567a5ebbe24ecb7828e200f63ed972718f"],"weaknesses":[],"ingestedAt":"2026-12-03T09:26:06.073Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143007.json","commit":"9fd484e43f2e14021809e195d28c1172759faad0","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143007","state":"PUBLISHED","datePublished":"2026-12-03T09:17:40.144Z","dateUpdated":"2026-12-03T09:17:40.144Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.342Z"},"containers":{"cna":{"title":"comedi: ni_660x: don't poll without a DMA channel","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncomedi: ni_660x: don't poll without a DMA channel\n\nA counter command owns a MITE DMA channel from ni_660x_cmd() to\nni_660x_cancel(). A command does not only end by COMEDI_CANCEL: when the\nreader is too slow mite_sync_input_dma() sets COMEDI_CB_OVERFLOW, and\ncounter errors set COMEDI_CB_ERROR, and comedi_handle_events() then calls\n->cancel() from the interrupt handler. That releases the channel and\nclears counter->mite_chan, but s->busy stays set until the owner has read\nthe rest of the data and seen the end of the acquisition.\n\ndo_poll_ioctl() only looks at s->busy, so a COMEDI_POLL in that state\nends in mite_sync_dma(NULL, s), which dereferences the channel.\n\nTest the channel like ni_pcidio_poll() and ni_sync_ai_dma() do. The\npointer only changes under dev->mutex, which the ioctl holds, or in the\ninterrupt handler under interrupt_lock, which is taken here."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"894db119734772c3694233bf2c9f7440a70d7736","status":"affected","lessThan":"0d09e99196a311db5e3ae75903bf554f74430de5","versionType":"git"},{"version":"894db119734772c3694233bf2c9f7440a70d7736","status":"affected","lessThan":"e12810354c0955ea94ac2b6ad579a0768fe38d7a","versionType":"git"},{"version":"894db119734772c3694233bf2c9f7440a70d7736","status":"affected","lessThan":"49b5388cc8b63c095f7a49c10a679368112f945c","versionType":"git"},{"version":"894db119734772c3694233bf2c9f7440a70d7736","status":"affected","lessThan":"caeb4970abc8f67aed5b64e8e71ce2d582301a95","versionType":"git"},{"version":"894db119734772c3694233bf2c9f7440a70d7736","status":"affected","lessThan":"5a0c88567a5ebbe24ecb7828e200f63ed972718f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/comedi/drivers/ni_660x.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.31","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.31","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc4","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/ni_660x.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/0d09e99196a311db5e3ae75903bf554f74430de5"},{"url":"https://git.kernel.org/stable/c/e12810354c0955ea94ac2b6ad579a0768fe38d7a"},{"url":"https://git.kernel.org/stable/c/49b5388cc8b63c095f7a49c10a679368112f945c"},{"url":"https://git.kernel.org/stable/c/caeb4970abc8f67aed5b64e8e71ce2d582301a95"},{"url":"https://git.kernel.org/stable/c/5a0c88567a5ebbe24ecb7828e200f63ed972718f"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:17:40.144Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"7.4-rc4"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}