iio: buffer: hw-consumer: fix use-after-free in error path
Summary
| CVE | CVE-2026-63930 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-07-19 16:17:11 UTC |
| Updated | 2026-07-20 15:16:57 UTC |
| 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(). |
Risk And Classification
Primary CVSS: v3.1 7.8 HIGH from 416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS: 0.002100000 probability, percentile 0.113650000 (date 2026-07-20)
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | Secondary | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | CNA | DECLARED | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 48b66f8f936f369bb1a43c12aedbfeb2975baf4c b71893c57730809c222766e5718bb33610f11963 git | Not specified |
| CNA | Linux | Linux | affected 48b66f8f936f369bb1a43c12aedbfeb2975baf4c 2ff615fc455acda5425c4900160cbe11cfea4449 git | Not specified |
| CNA | Linux | Linux | affected 48b66f8f936f369bb1a43c12aedbfeb2975baf4c d2759d49860b9a39b5cde2fb88e4b822ddf5f58f git | Not specified |
| CNA | Linux | Linux | affected 48b66f8f936f369bb1a43c12aedbfeb2975baf4c 29783e6b6ec0b7152a15e53a063f17537e81177d git | Not specified |
| CNA | Linux | Linux | affected 48b66f8f936f369bb1a43c12aedbfeb2975baf4c e965627f0d442bfcae3f496c90cb653fb0917a61 git | Not specified |
| CNA | Linux | Linux | affected 48b66f8f936f369bb1a43c12aedbfeb2975baf4c a3763ae33476328cf8d661742deb9daec78eac96 git | Not specified |
| CNA | Linux | Linux | affected 48b66f8f936f369bb1a43c12aedbfeb2975baf4c 9319c94f63ed10723afd738d79f5617daba87cc8 git | Not specified |
| CNA | Linux | Linux | affected 48b66f8f936f369bb1a43c12aedbfeb2975baf4c 6f5ed4f2c7c83f33344e0ba179f72a12e5dad4a4 git | Not specified |
| CNA | Linux | Linux | affected 4.16 | Not specified |
| CNA | Linux | Linux | unaffected 4.16 semver | Not specified |
| CNA | Linux | Linux | unaffected 5.10.259 5.10.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.15.210 5.15.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.1.176 6.1.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6.143 6.6.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.93 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18.35 6.18.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.0.12 7.0.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.1 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/29783e6b6ec0b7152a15e53a063f17537e81177d | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/b71893c57730809c222766e5718bb33610f11963 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/d2759d49860b9a39b5cde2fb88e4b822ddf5f58f | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/e965627f0d442bfcae3f496c90cb653fb0917a61 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/2ff615fc455acda5425c4900160cbe11cfea4449 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/a3763ae33476328cf8d661742deb9daec78eac96 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/9319c94f63ed10723afd738d79f5617daba87cc8 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/6f5ed4f2c7c83f33344e0ba179f72a12e5dad4a4 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.