{"id":"CVE-2026-143007","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T10:17:27.233","lastModified":"2026-12-03T10:17:27.233","vulnStatus":"Received","cveTags":[],"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":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/comedi/drivers/ni_660x.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"894db119734772c3694233bf2c9f7440a70d7736","lessThan":"0d09e99196a311db5e3ae75903bf554f74430de5","versionType":"git","status":"affected"},{"version":"894db119734772c3694233bf2c9f7440a70d7736","lessThan":"e12810354c0955ea94ac2b6ad579a0768fe38d7a","versionType":"git","status":"affected"},{"version":"894db119734772c3694233bf2c9f7440a70d7736","lessThan":"49b5388cc8b63c095f7a49c10a679368112f945c","versionType":"git","status":"affected"},{"version":"894db119734772c3694233bf2c9f7440a70d7736","lessThan":"caeb4970abc8f67aed5b64e8e71ce2d582301a95","versionType":"git","status":"affected"},{"version":"894db119734772c3694233bf2c9f7440a70d7736","lessThan":"5a0c88567a5ebbe24ecb7828e200f63ed972718f","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/comedi/drivers/ni_660x.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"2.6.31","status":"affected"},{"version":"0","lessThan":"2.6.31","versionType":"semver","status":"unaffected"},{"version":"5.15.227","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc4","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/0d09e99196a311db5e3ae75903bf554f74430de5","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/49b5388cc8b63c095f7a49c10a679368112f945c","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/5a0c88567a5ebbe24ecb7828e200f63ed972718f","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/caeb4970abc8f67aed5b64e8e71ce2d582301a95","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/e12810354c0955ea94ac2b6ad579a0768fe38d7a","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}