5.5medium
clk: mediatek: Do a runtime PM get on controllers during probe
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.23% (higher than 9% of CVEs)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: clk: mediatek: Do a runtime PM get on controllers during probe mt8183-mfgcfg has a mutual dependency with genpd during the probing stage, which leads to a deadlock in the following call stack: CPU0: genpd_lock --> clk_prepare_lock genpd_power_off_work_fn() genpd_lock() generic_pm_domain::power_off() clk_unprepare() clk_prepare_lock() CPU1: clk_prepare_lock --> genpd_lock clk_register() __clk_core_init() clk_prepare_lock() clk_pm_runtime_get() genpd_lock() Do a runtime PM get at the probe function to make sure clk_register() won't acquire the genpd lock. Instead of only modifying mt8183-mfgcfg, do this on all mediatek clock controller probings because we don't believe this would cause any regression. Verified on MT8183 and MT8192 Chromebooks.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from acddfc2c261b3653ab1c1b567a427299bac20d31 before 165d226472575b213dd90dfda19d1605dd7c19a8, from acddfc2c261b3653ab1c1b567a427299bac20d31 before c0dcd5c072e2a3fff886f673e6a5d9bf8090c4cc, from acddfc2c261b3653ab1c1b567a427299bac20d31 before b62ed25feb342eab052822eff0c554873799a4f5, from acddfc2c261b3653ab1c1b567a427299bac20d31 before 2f7b1d8b5505efb0057cd1ab85fca206063ea4c3, 5.2 Not affected: before 5.2, from 6.1.88 up to 6.1.*, from 6.6.29 up to 6.6.*, from 6.8.8 up to 6.8.*, from 6.9 up to * | CVE List |
| linux linux_kernel | from 5.2 before 6.1.88, from 6.2 before 6.6.29, from 6.7 before 6.8.8, 6.9 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: clk: mediatek: Do a runtime PM get on controllers during probe mt8183-mfgcfg has a mutual dependency with genpd during the probing stage, which leads to a deadlock in the following call stack: CPU0: genpd_lock --> clk_prepare_lock genpd_power_off_work_fn() genpd_lock() generic_pm_domain::power_off() clk_unprepare() clk_prepare_lock() CPU1: clk_prepare_lock --> genpd_lock clk_register() __clk_core_init() clk_prepare_lock() clk_pm_runtime_get() genpd_lock() Do a runtime PM get at the probe function to make sure clk_register() won't acquire the genpd lock. Instead of only modifying mt8183-mfgcfg, do this on all mediatek clock controller probings because we don't believe this would cause any regression. Verified on MT8183 and MT8192 Chromebooks.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: clk: mediatek: realice un PM en tiempo de ejecución en los controladores durante la prueba mt8183-mfgcfg tiene una dependencia mutua con genpd durante la etapa de prueba, lo que conduce a un punto muerto en la siguiente pila de llamadas: CPU0: genpd_lock --> clk_prepare_lock genpd_power_off_work_fn() genpd_lock() generic_pm_domain::power_off() clk_unprepare() clk_prepare_lock() CPU1: clk_prepare_lock --> genpd_lock clk_register() __clk_core_init() clk_prepare_lock() clk_pm_runtime_get() genpd_lock() Hacer un tiempo de ejecución PM acceda a la función de sonda para asegurarse de que clk_register() no adquiera el bloqueo genpd. En lugar de modificar únicamente mt8183-mfgcfg, haga esto en todas las pruebas del controlador de reloj mediatek porque no creemos que esto cause ninguna regresión. Verificado en Chromebooks MT8183 y MT8192.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-27002 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-27002 changed 2026-06-17 | Public domain |