Kernel Kit / Infix / v26.10.0latest
CVE-2026-46252
5.5mediumlinux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases
Reach linux · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
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/0xb8as 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.
Published 2026-06-03NVD
CVSS 3.1Local · low privileges · no user interaction
How it is reached
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
What it costs
- Confidentiality
- None
- Integrity
- None
- Availability
- High
- Scope
- Unchanged
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
References 8
- git.kernel.org/stable/c/3b7fffd7a8984a1c009f668765ee7631fd6b87c8
- git.kernel.org/stable/c/497330b203d2c59c5ff3fa4c34d14494d7203bc3
- git.kernel.org/stable/c/60747114fd2a38739130b715e7b2d40ce848f0be
- git.kernel.org/stable/c/a8a2eab1166bc33ee38ca371cff425bdb5681e47
- git.kernel.org/stable/c/bde74af8d4466213007bdd42cc85fa72c861dea7
- git.kernel.org/stable/c/c66e0db0f37290b53c57994f998bb55590364fd0
- git.kernel.org/stable/c/c84860dac7af7dc3c3e3c9ae86d65e222c2f3b0c
- git.kernel.org/stable/c/e77357dc2293283fc08a485b1e2e571d91d02622
Fable 5.1 · high confidence · 2026-11-06
The upstream fix for CVE-2026-46252 is already present in the configured linux-6.18.60 source: the late-enable error path in regulator_resolve_supply() (drivers/regulator/core.c:2177-2191) takes the rdev/supply ww locks via regulator_lock_two(), clears rdev->supply, unlocks, and then calls regulator_put(supply) rather than the unlocked _regulator_put(rdev->supply) that triggered the lockdep warning.
This is the exact post-fix shape of the code from the referenced stable commits, so it arrived as a stable backport in 6.18.60 (no local Infix patch touches drivers/regulator/core.c).
NVD's range for 6.18.60 simply does not reflect the stable backport; the vulnerable code is not in this build even though CONFIG_REGULATOR=y and core.o is compiled.
Evidence 6
…/ is output/build/linux-6.18.60/
Fixed error path: regulator_lock_two(rdev, rdev->supply->rdev, &ww_ctx); supply = rdev->supply; rdev->supply = NULL; regulator_unlock_two(...); regulator_put(supply); — matches the upstream fix hunk, not the vulnerable _regulator_put(rdev->supply) call.
…/drivers/regulator/core.c:2177-2191
_regulator_put() asserts regulator_list_mutex held (lockdep_assert_held_once); regulator_put() wraps it with mutex_lock/unlock — the fixed path now uses the locked wrapper.
…/drivers/regulator/core.c:2467-2500
Only remaining _regulator_put(rdev->supply) call is in a different function (constraint/registration teardown path, under list mutex), not the resolve_supply error path named by the CVE.
…/drivers/regulator/core.c:1661
Kernel is stable 6.18.60; fix is part of the stable tree content, not a local patch.
…/Makefile (VERSION=6, PATCHLEVEL=18, SUBLEVEL=60)
139 local patches; the only 'regulator'-named ones (0030 brcmfmac regulatory, 0089/0090 riscv spacemit DTS, 0097 mmc sdhci-of-k1) do not modify drivers/regulator/core.c.
…/.applied_patches_list
CONFIG_REGULATOR=y and output/objects.txt:19871 drivers/regulator/core.o — the subsystem is compiled, but with the fixed code.
…/.config:4069
Version and patches
CVE fixed upstream in mainline and backported to stable branches (referenced commits 3b7fffd7…, 497330b2…, 60747114…, a8a2eab1…, bde74af8…, c66e0db0…, c84860da…, e77357dc…). The configured linux-6.18.60 source in this tree already contains the fixed hunk in regulator_resolve_supply(); no Infix patch adds or removes it. NVD's CPE range listing 6.18.60 as affected does not account for the stable backport.
Recommendation
No action; document as not applicable (fix already present in 6.18.60 stable source).
Open questions
None material. The exact stable commit ID that landed in 6.18.60 was not confirmed via git metadata (tarball source, no git history), but the code matches the upstream fix hunk verbatim.
Members of Kernel Kit decide. Sign in if you are one.