Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2026-63930

iio: buffer: hw-consumer: fix use-after-free in error path

Description

In the Linux kernel, the following vulnerability has been resolved: iio: buffer: hw-consumer: fix use-after-free in error path In the err_put_buffers cleanup path of iio_hw_consumer_alloc(), the code was using list_for_each_entry() to iterate through buffers while calling iio_buffer_put() which can free the current buffer if refcount drops to 0. The list_for_each_entry() loop macro then evaluates buf->head.next to continue iteration, accessing the freed buffer. Fix this by using list_for_each_entry_safe().

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

  • 48b66f8f936f369bb1a43c12aedbfeb2975baf4c to < b71893c57730809c222766e5718bb33610f11963affected
  • 48b66f8f936f369bb1a43c12aedbfeb2975baf4c to < 2ff615fc455acda5425c4900160cbe11cfea4449affected
  • 48b66f8f936f369bb1a43c12aedbfeb2975baf4c to < d2759d49860b9a39b5cde2fb88e4b822ddf5f58faffected
  • 48b66f8f936f369bb1a43c12aedbfeb2975baf4c to < 29783e6b6ec0b7152a15e53a063f17537e81177daffected
  • 48b66f8f936f369bb1a43c12aedbfeb2975baf4c to < e965627f0d442bfcae3f496c90cb653fb0917a61affected
  • 48b66f8f936f369bb1a43c12aedbfeb2975baf4c to < a3763ae33476328cf8d661742deb9daec78eac96affected
  • 48b66f8f936f369bb1a43c12aedbfeb2975baf4c to < 9319c94f63ed10723afd738d79f5617daba87cc8affected
  • 48b66f8f936f369bb1a43c12aedbfeb2975baf4c to < 6f5ed4f2c7c83f33344e0ba179f72a12e5dad4a4affected

Linux Linux

Default version status: affected

  • 4.16affected
  • 0 to < 4.16unaffected
  • 5.10.259 to ≤ 5.10.*unaffected
  • 5.15.210 to ≤ 5.15.*unaffected
  • 6.1.176 to ≤ 6.1.*unaffected
  • 6.6.143 to ≤ 6.6.*unaffected
  • 6.12.93 to ≤ 6.12.*unaffected
  • 6.18.35 to ≤ 6.18.*unaffected
  • 7.0.12 to ≤ 7.0.*unaffected
  • 7.1 to ≤ *unaffected

References