regulator: core: Protect regulator_supply_alias_list with regulator_list_mutex
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a06ccd9c3785fa5550917ae036944f4e080b5749 · < 431a1d44ad4866362cc28fc1cc4ca93d84989239| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
regulator: core: Protect regulator_supply_alias_list with regulator_list_mutex
regulator_supply_alias_list was accessed without any locking in regulator_supply_alias(), regulator_register_supply_alias(), and regulator_unregister_supply_alias(). Concurrent registration, unregistration and lookups can race, leading to:
1 use-after-free if an alias entry is removed while being read, 2 duplicate entries when two threads register the same alias, 3 inconsistent alias mappings observed by consumers.
Protect all traversals, insertions and deletions on regulator_supply_alias_list with the existing regulator_list_mutex.
From the CVE record · Linux
The Linux kernel’s regulator supply alias list was accessed without locking. Concurrent alias registration, unregistration, and lookups can cause a use-after-free, duplicate entries, or inconsistent mappings; the input does not specify an attack path or authentication requirements.
Engineers running Linux kernels with the affected regulator core code should check their versions; affected versions are not specified.