CVE-2026-46252

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

State
Published
Severity
Not scored
Published
Jun 3, 2026
Updated
Jul 4, 2026
Reserved
May 13, 2026

Read the record on cve.org

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

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 36a1f1b6ddc6d1442424e29548e790633ca39c7b to before e77357dc2293283fc08a485b1e2e571d91d02622Affected
  • 36a1f1b6ddc6d1442424e29548e790633ca39c7b to before a8a2eab1166bc33ee38ca371cff425bdb5681e47Affected
  • 36a1f1b6ddc6d1442424e29548e790633ca39c7b to before 60747114fd2a38739130b715e7b2d40ce848f0beAffected
  • 36a1f1b6ddc6d1442424e29548e790633ca39c7b to before c84860dac7af7dc3c3e3c9ae86d65e222c2f3b0cAffected
  • 36a1f1b6ddc6d1442424e29548e790633ca39c7b to before 3b7fffd7a8984a1c009f668765ee7631fd6b87c8Affected
  • 36a1f1b6ddc6d1442424e29548e790633ca39c7b to before bde74af8d4466213007bdd42cc85fa72c861dea7Affected
  • 36a1f1b6ddc6d1442424e29548e790633ca39c7b to before c66e0db0f37290b53c57994f998bb55590364fd0Affected
  • 36a1f1b6ddc6d1442424e29548e790633ca39c7b to before 497330b203d2c59c5ff3fa4c34d14494d7203bc3Affected
LinuxLinux
  • 4.2Affected
  • before 4.2Not affected
  • 5.10.260 through 5.10.*Not affected
  • 5.15.211 through 5.15.*Not affected
  • 6.1.177 through 6.1.*Not affected
  • 6.6.144 through 6.6.*Not affected
  • 6.12.95 through 6.12.*Not affected
  • 6.18.37 through 6.18.*Not affected
  • 6.19.4 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.