{"id":"CVE-2026-143007","summary":"comedi: ni_660x: don't poll without a DMA channel","details":"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-\u003ecancel() from the interrupt handler. That releases the channel and\nclears counter-\u003emite_chan, but s-\u003ebusy 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-\u003ebusy, 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-\u003emutex, which the ioctl holds, or in the\ninterrupt handler under interrupt_lock, which is taken here.","modified":"2026-12-03T11:00:48.940311949Z","published":"2026-12-03T09:17:40.144Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143007.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0d09e99196a311db5e3ae75903bf554f74430de5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/49b5388cc8b63c095f7a49c10a679368112f945c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5a0c88567a5ebbe24ecb7828e200f63ed972718f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/caeb4970abc8f67aed5b64e8e71ce2d582301a95"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e12810354c0955ea94ac2b6ad579a0768fe38d7a"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143007.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143007"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"894db119734772c3694233bf2c9f7440a70d7736"},{"fixed":"0d09e99196a311db5e3ae75903bf554f74430de5"},{"fixed":"e12810354c0955ea94ac2b6ad579a0768fe38d7a"},{"fixed":"49b5388cc8b63c095f7a49c10a679368112f945c"},{"fixed":"caeb4970abc8f67aed5b64e8e71ce2d582301a95"},{"fixed":"5a0c88567a5ebbe24ecb7828e200f63ed972718f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143007.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.31"},{"fixed":"5.15.227"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143007.json"}}],"schema_version":"1.9.2"}