regulator: core: fix locking in regulator_resolve_supply() error path (Linux Linux)
En bref
- Source
- NVD
- EPSS
- EPSS 0.09 % · centile 0 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- Linux
- Statut NVD
- Modified
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.
Faiblesses (CWE)
- CWE-667 — Improper Locking
Références
- https://git.kernel.org/stable/c/e77357dc2293283fc08a485b1e2e571d91d02622
- https://git.kernel.org/stable/c/a8a2eab1166bc33ee38ca371cff425bdb5681e47
- https://git.kernel.org/stable/c/60747114fd2a38739130b715e7b2d40ce848f0be
- https://git.kernel.org/stable/c/c84860dac7af7dc3c3e3c9ae86d65e222c2f3b0c
- https://git.kernel.org/stable/c/3b7fffd7a8984a1c009f668765ee7631fd6b87c8
- https://git.kernel.org/stable/c/bde74af8d4466213007bdd42cc85fa72c861dea7
- https://git.kernel.org/stable/c/c66e0db0f37290b53c57994f998bb55590364fd0
- https://git.kernel.org/stable/c/497330b203d2c59c5ff3fa4c34d14494d7203bc3
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | NVD · nvd@nist.gov (Primary) |
Références européennes
- ENISA EUVD · EUVD-2026-34114
- GCVE · GCVE-0-2026-46252
Avis du CERT-FR
- CERTFR-2026-AVI-1385 — Multiples vulnérabilités dans les produits VMware · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1333 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1286 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1064 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1029 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-0982 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-0957 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-0929 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-0927 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-0862 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
Configurations affectées (CPE NVD)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 4.2.1 < 6.19.4cpe:2.3:o:linux:linux_kernel:4.2:-:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:4.2:rc4:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:4.2:rc5:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:4.2:rc6:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:4.2:rc7:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:4.2:rc8:*:*:*:*:*:*
Produits affectés
| Produit | Versions |
|---|---|
| Linux · Linux | affected 36a1f1b6ddc6d1442424e29548e790633ca39c7b < e77357dc2293283fc08a485b1e2e571d91d02622 ; affected 36a1f1b6ddc6d1442424e29548e790633ca39c7b < a8a2eab1166bc33ee38ca371cff425bdb5681e47 ; affected 36a1f1b6ddc6d1442424e29548e790633ca39c7b < 60747114fd2a38739130b715e7b2d40ce848f0be ; affected 36a1f1b6ddc6d1442424e29548e790633ca39c7b < c84860dac7af7dc3c3e3c9ae86d65e222c2f3b0c ; affected 36a1f1b6ddc6d1442424e29548e790633ca39c7b < 3b7fffd7a8984a1c009f668765ee7631fd6b87c8 ; affected 36a1f1b6ddc6d1442424e29548e790633ca39c7b < bde74af8d4466213007bdd42cc85fa72c861dea7 |
| Linux · Linux | affected 4.2 ; unaffected 0 < 4.2 ; unaffected 5.10.260 ≤ 5.10.* ; unaffected 5.15.211 ≤ 5.15.* ; unaffected 6.1.177 ≤ 6.1.* ; unaffected 6.6.144 ≤ 6.6.* |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |