CVE-2026-63930
7.8high
iio: buffer: hw-consumer: fix use-after-free in error path
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.16% (higher than 5% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 48b66f8f936f369bb1a43c12aedbfeb2975baf4c before b71893c57730809c222766e5718bb33610f11963, from 48b66f8f936f369bb1a43c12aedbfeb2975baf4c before 2ff615fc455acda5425c4900160cbe11cfea4449, from 48b66f8f936f369bb1a43c12aedbfeb2975baf4c before d2759d49860b9a39b5cde2fb88e4b822ddf5f58f, from 48b66f8f936f369bb1a43c12aedbfeb2975baf4c before 29783e6b6ec0b7152a15e53a063f17537e81177d, from 48b66f8f936f369bb1a43c12aedbfeb2975baf4c before e965627f0d442bfcae3f496c90cb653fb0917a61, from 48b66f8f936f369bb1a43c12aedbfeb2975baf4c before a3763ae33476328cf8d661742deb9daec78eac96, from 48b66f8f936f369bb1a43c12aedbfeb2975baf4c before 9319c94f63ed10723afd738d79f5617daba87cc8, from 48b66f8f936f369bb1a43c12aedbfeb2975baf4c before 6f5ed4f2c7c83f33344e0ba179f72a12e5dad4a4 and 1 more Not affected: before 4.16, from 5.10.259 up to 5.10.*, from 5.15.210 up to 5.15.*, from 6.1.176 up to 6.1.*, from 6.6.143 up to 6.6.*, from 6.12.93 up to 6.12.* | CVE List |
| linux linux_kernel | from 4.16 before 5.10.259, from 5.11 before 5.15.210, from 5.16 before 6.1.176, from 6.2 before 6.6.143, from 6.7 before 6.12.93, from 6.13 before 6.18.35, from 6.19 before 7.0.12, 7.1 | NVD |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-63930 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2026-63930 changed 2026-10-30 | Public domain |