Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-143007

comedi: ni_660x: don't poll without a DMA channel

Description

In the Linux kernel, the following vulnerability has been resolved: comedi: ni_660x: don't poll without a DMA channel A counter command owns a MITE DMA channel from ni_660x_cmd() to ni_660x_cancel(). A command does not only end by COMEDI_CANCEL: when the reader is too slow mite_sync_input_dma() sets COMEDI_CB_OVERFLOW, and counter errors set COMEDI_CB_ERROR, and comedi_handle_events() then calls ->cancel() from the interrupt handler. That releases the channel and clears counter->mite_chan, but s->busy stays set until the owner has read the rest of the data and seen the end of the acquisition. do_poll_ioctl() only looks at s->busy, so a COMEDI_POLL in that state ends in mite_sync_dma(NULL, s), which dereferences the channel. Test the channel like ni_pcidio_poll() and ni_sync_ai_dma() do. The pointer only changes under dev->mutex, which the ioctl holds, or in the interrupt handler under interrupt_lock, which is taken here.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 894db119734772c3694233bf2c9f7440a70d7736 to < 0d09e99196a311db5e3ae75903bf554f74430de5affected
  • 894db119734772c3694233bf2c9f7440a70d7736 to < e12810354c0955ea94ac2b6ad579a0768fe38d7aaffected
  • 894db119734772c3694233bf2c9f7440a70d7736 to < 49b5388cc8b63c095f7a49c10a679368112f945caffected
  • 894db119734772c3694233bf2c9f7440a70d7736 to < caeb4970abc8f67aed5b64e8e71ce2d582301a95affected
  • 894db119734772c3694233bf2c9f7440a70d7736 to < 5a0c88567a5ebbe24ecb7828e200f63ed972718faffected

Linux Linux

Default version status: affected

  • 2.6.31affected
  • 0 to < 2.6.31unaffected
  • 5.15.227 to ≤ 5.15.*unaffected
  • 6.12.120 to ≤ 6.12.*unaffected
  • 6.18.66 to ≤ 6.18.*unaffected
  • 7.3.7 to ≤ 7.3.*unaffected
  • 7.4-rc4 to ≤ *unaffected

References