Descrizione
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.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
4.2.1precedenti alla6.19.4→ aggiornare alla6.19.4o successiva. - Linux Linux Kernel: vulnerabile la versione
4.2→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
4.2 rc4→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
4.2 rc5→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
4.2 rc6→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
4.2 rc7→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
4.2 rc8→ installare l'ultima release supportata dal vendor.
Patch e advisory
- Patch: git.kernel.org/stable/c/497330b203d2c59c5ff3fa4c34d…
- Patch: git.kernel.org/stable/c/c66e0db0f37290b53c57994f998…
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre l'esposizione del componente vulnerabile (segmentazione, accesso solo da reti fidate) finché la patch non è applicata.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Linux | Linux Kernel | ≥ 4.2.1 < 6.19.4 | 6.19.4 |
| Linux | Linux Kernel | 4.2 | — |
| Linux | Linux Kernel | 4.2 rc4 | — |
| Linux | Linux Kernel | 4.2 rc5 | — |
| Linux | Linux Kernel | 4.2 rc6 | — |
| Linux | Linux Kernel | 4.2 rc7 | — |
| Linux | Linux Kernel | 4.2 rc8 | — |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/497330b203d2c59c5ff3fa4c34d14494d7203bc3
- Patchhttps://git.kernel.org/stable/c/c66e0db0f37290b53c57994f998bb55590364fd0
- Riferimentohttps://git.kernel.org/stable/c/3b7fffd7a8984a1c009f668765ee7631fd6b87c8
- Riferimentohttps://git.kernel.org/stable/c/60747114fd2a38739130b715e7b2d40ce848f0be
- Riferimentohttps://git.kernel.org/stable/c/a8a2eab1166bc33ee38ca371cff425bdb5681e47
- Riferimentohttps://git.kernel.org/stable/c/bde74af8d4466213007bdd42cc85fa72c861dea7
- Riferimentohttps://git.kernel.org/stable/c/c84860dac7af7dc3c3e3c9ae86d65e222c2f3b0c
- Riferimentohttps://git.kernel.org/stable/c/e77357dc2293283fc08a485b1e2e571d91d02622