iio: buffer: hw-consumer: fix use-after-free in error path
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().
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.259, 5.15.210, 6.1.176, 6.12.93, 6.18.35, 6.6.143, 7.0.12
- CVEs
- CVE-2026-63930
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 00:35 UTC · Revision 1
Source evidence
iio: buffer: hw-consumer: fix use-after-free in error path
core-osv · Original sourcePublished 19 Jul 2026, 14:55 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().
osv:CVE-2026-63930
Kernel
Fixed versions: 5.10.259, 5.15.210, 6.1.176, 6.6.143, 6.12.93, 6.18.35, 7.0.12
Complete source record
{
"id": "b07278de58cca7f024683659d1fcfee8f052aff364baf724b68300f789730112",
"url": "https://osv.dev/vulnerability/CVE-2026-63930",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "iio: buffer: hw-consumer: fix use-after-free in error path",
"summary": "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().",
"evidence": "osv:CVE-2026-63930",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.259",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.210",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.176",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.143",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.93",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.35",
"evidence": "/affected/1/ranges"
},
{
"value": "7.0.12",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2026-63930",
"aliases": [
"CVE-2026-63930"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "48b66f8f936f369bb1a43c12aedbfeb2975baf4c"
},
{
"fixed": "b71893c57730809c222766e5718bb33610f11963"
},
{
"fixed": "2ff615fc455acda5425c4900160cbe11cfea4449"
},
{
"fixed": "d2759d49860b9a39b5cde2fb88e4b822ddf5f58f"
},
{
"fixed": "29783e6b6ec0b7152a15e53a063f17537e81177d"
},
{
"fixed": "e965627f0d442bfcae3f496c90cb653fb0917a61"
},
{
"fixed": "a3763ae33476328cf8d661742deb9daec78eac96"
},
{
"fixed": "9319c94f63ed10723afd738d79f5617daba87cc8"
},
{
"fixed": "6f5ed4f2c7c83f33344e0ba179f72a12e5dad4a4"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63930.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.16.0"
},
{
"fixed": "5.10.259"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.210"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.176"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.143"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.93"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.18.35"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "7.0.12"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63930.json"
}
}
],
"modified": "2026-11-01T02:31:03.498440541Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/29783e6b6ec0b7152a15e53a063f17537e81177d",
"https://git.kernel.org/stable/c/2ff615fc455acda5425c4900160cbe11cfea4449",
"https://git.kernel.org/stable/c/6f5ed4f2c7c83f33344e0ba179f72a12e5dad4a4",
"https://git.kernel.org/stable/c/9319c94f63ed10723afd738d79f5617daba87cc8",
"https://git.kernel.org/stable/c/a3763ae33476328cf8d661742deb9daec78eac96",
"https://git.kernel.org/stable/c/b71893c57730809c222766e5718bb33610f11963",
"https://git.kernel.org/stable/c/d2759d49860b9a39b5cde2fb88e4b822ddf5f58f",
"https://git.kernel.org/stable/c/e965627f0d442bfcae3f496c90cb653fb0917a61",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63930.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-63930",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63930.json"
}
},
"related_cves": [
{
"value": "CVE-2026-63930",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 516660,
"published_at": "2026-07-19T14:55:30.016+00:00"
}