Descrizione
In the Linux kernel, the following vulnerability has been resolved: thermal: core: Fix thermal zone governor cleanup issues If thermal_zone_device_register_with_trips() fails after adding a thermal governor to the thermal zone being registered, the governor is not removed from it as appropriate which may lead to a memory leak. In turn, thermal_zone_device_unregister() calls thermal_set_governor() without acquiring the thermal zone lock beforehand which may race with a governor update via sysfs and may lead to a use-after-free in that case. Address these issues by adding two thermal_set_governor() calls, one to thermal_release() to remove the governor from the given thermal zone, and one to the thermal zone registration error path to cover failures preceding the thermal zone device registration.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
4.2precedenti alla6.6.140→ aggiornare alla6.6.140o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.86→ aggiornare alla6.12.86o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.27→ aggiornare alla6.18.27o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.0.4→ aggiornare alla7.0.4o successiva.
Patch e advisory
- Patch: git.kernel.org/stable/c/37a430a2d4e66ec8238da6c7f7e…
- Patch: git.kernel.org/stable/c/41ff66baf81c6541f4f985dd7ea…
- Patch: git.kernel.org/stable/c/64d4ebf91d082034bbc5ae3ba2d…
- Patch: git.kernel.org/stable/c/75f8f3c3e09122270986de9d7aa…
- Patch: git.kernel.org/stable/c/f412e541d25a3dfaf3d53e012ad…
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 < 6.6.140 | 6.6.140 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.86 | 6.12.86 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.27 | 6.18.27 |
| Linux | Linux Kernel | ≥ 6.19 < 7.0.4 | 7.0.4 |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/37a430a2d4e66ec8238da6c7f7e48809bf265e13
- Patchhttps://git.kernel.org/stable/c/41ff66baf81c6541f4f985dd7eac4494d03d9440
- Patchhttps://git.kernel.org/stable/c/64d4ebf91d082034bbc5ae3ba2d7fd800bc02d06
- Patchhttps://git.kernel.org/stable/c/75f8f3c3e09122270986de9d7aa347d701676761
- Patchhttps://git.kernel.org/stable/c/f412e541d25a3dfaf3d53e012ade6ff03cae8a45
- Riferimentohttps://git.kernel.org/stable/c/8e563d8db50f303171aceb79eec0807e7ba06951
- Riferimentohttps://git.kernel.org/stable/c/a172fa18bc370b776ac1510abb0dcb50a7a35fac
- Riferimentohttps://git.kernel.org/stable/c/d4eb861adde5ce22e459fbd29366f47bb2167977
- Riferimentohttps://cert-portal.siemens.com/productcert/html/ssa-019113.html
- Riferimentohttps://cert-portal.siemens.com/productcert/html/ssa-457936.html
- Riferimentohttps://cert-portal.siemens.com/productcert/html/ssa-784472.html