CVE-2026-46252

MEDIUM

regulator: core: fix locking in regulator_resolve_supply() error path

Title source: cna
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: regulator: core: fix locking in regulator_resolve_supply() error path If late enabling of a supply regulator fails in regulator_resolve_supply(), the code currently triggers a lockdep warning: WARNING: drivers/regulator/core.c:2649 at _regulator_put+0x80/0xa0, CPU#6: kworker/u32:4/596 ... Call trace: _regulator_put+0x80/0xa0 (P) regulator_resolve_supply+0x7cc/0xbe0 regulator_register_resolve_supply+0x28/0xb8 as the regulator_list_mutex must be held when calling _regulator_put(). To solve this, simply switch to using regulator_put(). While at it, we should also make sure that no concurrent access happens to our rdev while we clear out the supply pointer. Add appropriate locking to ensure that. While the code in question will be removed altogether in a follow-up commit, I believe it is still beneficial to have this corrected before removal for future reference.

Scores

CVSS v3 5.5
EPSS 0.0009
EPSS Percentile 0.6%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-667
Status published
Products (27)
linux/Kernel 4.2.0 - 5.10.260linux
linux/Kernel 5.11.0 - 5.15.211linux
linux/Kernel 5.16.0 - 6.1.177linux
linux/Kernel 6.13.0 - 6.18.37linux
linux/Kernel 6.19.0 - 6.19.4linux
linux/Kernel 6.2.0 - 6.6.144linux
linux/Kernel 6.7.0 - 6.12.95linux
Linux/Linux < 4.2
Linux/Linux 36a1f1b6ddc6d1442424e29548e790633ca39c7b - 3b7fffd7a8984a1c009f668765ee7631fd6b87c8
Linux/Linux 36a1f1b6ddc6d1442424e29548e790633ca39c7b - 497330b203d2c59c5ff3fa4c34d14494d7203bc3
... and 17 more
Published Jun 03, 2026
Tracked Since Jun 03, 2026