AZL-117920: CVE-2026-143007 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
comedi: ni660x: don't poll without a DMA channel
A counter command owns a MITE DMA channel from ni660xcmd() to ni660xcancel(). A command does not only end by COMEDICANCEL: when the reader is too slow mitesyncinputdma() sets COMEDICBOVERFLOW, and counter errors set COMEDICBERROR, and comedihandleevents() then calls ->cancel() from the interrupt handler. That releases the channel and clears counter->mitechan, but s->busy stays set until the owner has read the rest of the data and seen the end of the acquisition.
dopollioctl() only looks at s->busy, so a COMEDIPOLL in that state ends in mitesyncdma(NULL, s), which dereferences the channel.
Test the channel like nipcidiopoll() and nisyncaidma() do. The pointer only changes under dev->mutex, which the ioctl holds, or in the interrupt handler under interruptlock, which is taken here.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the ni_660x polling path, check that a DMA channel is present before calling mite_sync_dma(), following ni_pcidio_poll() and ni_sync_ai_dma().
Event History
Frequently Asked Questions
What conditions are required to trigger this issue?
A Comedi ni_660x counter command must have its DMA channel released after an overflow or counter error while the subdevice remains busy, and a COMEDI_POLL ioctl must then be issued. The vulnerable path dereferences a cleared DMA-channel pointer.
Are systems using the affected kernel package exposed by default?
The described path is specific to the Comedi ni_660x driver and requires use of its counter acquisition and polling functionality. The provided data does not indicate that ordinary systems not using this driver path are exposed.
What event causes the DMA channel to be released before polling occurs?
The channel can be released when a reader is too slow and DMA synchronization sets COMEDI_CB_OVERFLOW, or when a counter error sets COMEDI_CB_ERROR. Event handling then invokes the driver's cancel callback from the interrupt handler.