{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-63930",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-07-19T07:54:57.021Z",
        "datePublished": "2026-07-19T14:55:30.016Z",
        "dateUpdated": "2026-08-05T12:37:23.422Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T12:37:23.422Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\niio: buffer: hw-consumer: fix use-after-free in error path\n\nIn the err_put_buffers cleanup path of iio_hw_consumer_alloc(), the code\nwas using list_for_each_entry() to iterate through buffers while calling\niio_buffer_put() which can free the current buffer if refcount drops to 0.\nThe list_for_each_entry() loop macro then evaluates buf->head.next to\ncontinue iteration, accessing the freed buffer.\n\nFix this by using list_for_each_entry_safe()."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The vulnerable code is only reached from kernel driver probe via `devm_iio_hw_consumer_alloc()` in the STM32 DFSDM ADC driver; there is no network, Bluetooth, or direct userspace syscall/ioctl path to `iio_hw_consumer_alloc()`.\nAC:L - Once on affected hardware, triggering the bug requires only causing `ENOMEM` during buffer setup (e.g., memory exhaustion) while probe or deferred-probe runs; the UAF is deterministic on that failure path and does not depend on winning a race or uncontrollable memory layout.\nPR:L - An unprivileged local user can exhaust system memory to force allocation failure during deferred-probe retries on embedded STM32 systems using legacy DFSDM bindings, without requiring init-namespace root or `CAP_SYS_MODULE`.\nUI:N - Exploitation does not require any victim user action such as mounting a filesystem or opening a file; memory pressure and kernel probe retries are sufficient.\nS:U - Impact is kernel heap memory corruption within the same kernel security authority; this is not a VM escape, IOMMU bypass, or other cross-boundary scope change.\nC:H - The bug is a slab use-after-free where the cleanup loop dereferences `buf->head.next` after `iio_buffer_put()` frees the buffer object, enabling arbitrary kernel memory read primitives via heap grooming.\nI:H - Use-after-free on `hw_consumer_buffer` kmalloc objects can be leveraged for heap corruption and control-flow hijack to achieve arbitrary kernel write or code execution, not merely a bounded modification.\nA:H - The use-after-free dereference of freed list linkage commonly causes kernel oops/panic during the error cleanup path, and successful exploitation can fully compromise kernel availability."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/iio/buffer/industrialio-hw-consumer.c"
                    ],
                    "versions": [
                        {
                            "version": "48b66f8f936f369bb1a43c12aedbfeb2975baf4c",
                            "lessThan": "b71893c57730809c222766e5718bb33610f11963",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "48b66f8f936f369bb1a43c12aedbfeb2975baf4c",
                            "lessThan": "2ff615fc455acda5425c4900160cbe11cfea4449",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "48b66f8f936f369bb1a43c12aedbfeb2975baf4c",
                            "lessThan": "d2759d49860b9a39b5cde2fb88e4b822ddf5f58f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "48b66f8f936f369bb1a43c12aedbfeb2975baf4c",
                            "lessThan": "29783e6b6ec0b7152a15e53a063f17537e81177d",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "48b66f8f936f369bb1a43c12aedbfeb2975baf4c",
                            "lessThan": "e965627f0d442bfcae3f496c90cb653fb0917a61",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "48b66f8f936f369bb1a43c12aedbfeb2975baf4c",
                            "lessThan": "a3763ae33476328cf8d661742deb9daec78eac96",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "48b66f8f936f369bb1a43c12aedbfeb2975baf4c",
                            "lessThan": "9319c94f63ed10723afd738d79f5617daba87cc8",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "48b66f8f936f369bb1a43c12aedbfeb2975baf4c",
                            "lessThan": "6f5ed4f2c7c83f33344e0ba179f72a12e5dad4a4",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/iio/buffer/industrialio-hw-consumer.c"
                    ],
                    "versions": [
                        {
                            "version": "4.16",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.16",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.259",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.210",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.176",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.143",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.93",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.35",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.0.12",
                            "lessThanOrEqual": "7.0.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "5.10.259"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "5.15.210"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "6.1.176"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "6.6.143"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "6.12.93"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "6.18.35"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "7.0.12"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "7.1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/b71893c57730809c222766e5718bb33610f11963"
                },
                {
                    "url": "https://git.kernel.org/stable/c/2ff615fc455acda5425c4900160cbe11cfea4449"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d2759d49860b9a39b5cde2fb88e4b822ddf5f58f"
                },
                {
                    "url": "https://git.kernel.org/stable/c/29783e6b6ec0b7152a15e53a063f17537e81177d"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e965627f0d442bfcae3f496c90cb653fb0917a61"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a3763ae33476328cf8d661742deb9daec78eac96"
                },
                {
                    "url": "https://git.kernel.org/stable/c/9319c94f63ed10723afd738d79f5617daba87cc8"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6f5ed4f2c7c83f33344e0ba179f72a12e5dad4a4"
                }
            ],
            "title": "iio: buffer: hw-consumer: fix use-after-free in error path",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}