# CVE-2026-63930: iio: buffer: hw-consumer: fix use-after-free in error path

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-07-19T14:55:30.016Z
- Modified: 2026-10-30T14:28:54.070Z
- Weaknesses: CWE-416
- 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().

(As written by CVE List.)

## Affected

- 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; 4.16 (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.*; from 6.18.35 up to 6.18.*; from 7.0.12 up to 7.0.*; from 7.1 up to *)
- 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

## References

- <https://git.kernel.org/stable/c/b71893c57730809c222766e5718bb33610f11963> (patch)
- <https://git.kernel.org/stable/c/2ff615fc455acda5425c4900160cbe11cfea4449> (patch)
- <https://git.kernel.org/stable/c/d2759d49860b9a39b5cde2fb88e4b822ddf5f58f> (patch)
- <https://git.kernel.org/stable/c/29783e6b6ec0b7152a15e53a063f17537e81177d> (patch)
- <https://git.kernel.org/stable/c/e965627f0d442bfcae3f496c90cb653fb0917a61> (patch)
- <https://git.kernel.org/stable/c/a3763ae33476328cf8d661742deb9daec78eac96> (patch)
- <https://git.kernel.org/stable/c/9319c94f63ed10723afd738d79f5617daba87cc8> (patch)
- <https://git.kernel.org/stable/c/6f5ed4f2c7c83f33344e0ba179f72a12e5dad4a4> (patch)

## Sources

- CVE List: [CVE-2026-63930](https://www.cve.org/CVERecord?id=CVE-2026-63930), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2026-63930](https://nvd.nist.gov/vuln/detail/CVE-2026-63930), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-63930 · Whole record: https://cve.day/CVE-2026-63930.json · Rebuilt by cve.day 2026-11-25T22:59:28.838Z
