CVE-2026-63930

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

High · published July 19, 2026

CVSS v3.1
7.8
EPSS
0%
Percentile
4.7
In the wild
Unconfirmed
What it is

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().

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00160 · 4.7th percentile
Published
2026-07-19T14:55Z
EPSS history
Timeline
  • 19 JUL 14:55Z
    iio: buffer: hw-consumer: fix use-after-free in error path
    cvelistv5