regulator: of: fill in supply names in of_regulator_bulk_get_all()
In the Linux kernel, the following vulnerability has been resolved: regulator: of: fill in supply names in of_regulator_bulk_get_all() of_regulator_bulk_get_all() returns an array it allocated itself, and fills in only the consumer of each entry. Every other way of getting a bulk array has the supply name set, because the caller provides it, and the core expects it to be there: regulator_bulk_enable() prints it when a supply fails to enable, so a caller that hands such an array to it dereferences uninitialised memory on that path. Copy each name into the array's own allocation, right behind the entries, so that it shares the array's lifetime and callers still have nothing extra to free. That also retires the fixed 64 byte stack buffer the names were assembled in, which is_supply_name() never bounded the copy against.
CVE-2026-99021
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-99021
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "27b9ecc7a9ba1d0014779bfe5a6dbf630899c6e7",
"lessThan": "82ac8c4939bdbd064b4f54a580fbe4baf0d60e41",
"versionType": "git"
},
{
"status": "affected",
"version": "27b9ecc7a9ba1d0014779bfe5a6dbf630899c6e7",
"lessThan": "a3384ec2516a7cc567bd7c09029282494469b247",
"versionType": "git"
},
{
"status": "affected",
"version": "27b9ecc7a9ba1d0014779bfe5a6dbf630899c6e7",
"lessThan": "e2151c29cec73f6cc70abf1c7cbc7b9b202489f5",
"versionType": "git"
},
{
"status": "affected",
"version": "fd5015686d898db6642e05cfa1cc4e1289631ecb",
"versionType": "git"
},
{
"status": "affected",
"version": "6.1.110",
"lessThan": "6.2",
"versionType": "semver"
}
],
"programFiles": [
"drivers/regulator/of_regulator.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.2"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.2",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.18.57",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.11",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/regulator/of_regulator.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-99021
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #52856 · Revision 1
- Added to Heist Feed
- Publisher date