CVE-2026-143007: comedi: ni_660x: don't poll without a DMA channel
comedi: ni660x: don't poll without a DMA channel
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.227 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
In the ni_660x polling path, check that a DMA channel exists before polling, as ni_pcidio_poll() and ni_sync_ai_dma() do.
Event History
Frequently Asked Questions
Under what conditions can this issue be triggered?
It requires use of the comedi ni_660x counter driver with an active counter command that has already lost its MITE DMA channel because the acquisition ended through an overflow or counter error. A subsequent COMEDI_POLL while the subdevice remains marked busy can dereference the cleared channel pointer.
Can a slow data reader contribute to triggering the problem?
Yes. If the reader is too slow, mite_sync_input_dma() can set COMEDI_CB_OVERFLOW, causing event handling to cancel the command and release the DMA channel before the owner has finished reading the remaining data.
How can administrators determine whether a system is exposed?
Systems are relevant if they use the Linux kernel's comedi ni_660x driver and issue COMEDI_POLL requests against counter acquisitions. The vulnerable state involves an overflow or counter error followed by polling before the acquisition owner has consumed the remaining data and observed its end.
What is the immediate mitigation if an updated kernel cannot be deployed?
Avoid issuing COMEDI_POLL for ni_660x counter commands after an overflow or counter error has ended the acquisition. Ensure acquisition consumers keep up with incoming data to reduce overflow conditions.