Bug 2502450 (CVE-2026-63930) - CVE-2026-63930 kernel: iio: buffer: hw-consumer: fix use-after-free in error path
Summary: CVE-2026-63930 kernel: iio: buffer: hw-consumer: fix use-after-free in error ...
Keywords:
Status: NEW
Alias: CVE-2026-63930
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-19 16:08 UTC by OSIDB Bzimport
Modified: 2026-07-21 14:12 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-19 16:08:50 UTC
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().

Comment 1 Mauro Matteo Cascella 2026-07-21 14:09:44 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026071950-CVE-2026-63930-6bca@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.