Description
In the Linux kernel, the following vulnerability has been resolved: phy: qcom: qmp-usb: Fix possible NULL-deref on early runtime suspend There is a small window where the runtime suspend callback may run after pm_runtime_enable() and before pm_runtime_forbid(). In this case, a crash occurs because runtime suspend/resume dereferences qmp->phy pointer, which is not yet initialized: `if (!qmp->phy->init_count) {` This can also happen if user re-enables runtime-pm via the sysfs attribute before qmp phy is initialized. Similarly to other qcom phy drivers, introduce a qmp->phy_initialized variable that can be used to avoid relying on the possibly uninitialized phy pointer.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
e464a3180a43b6596bd267f9f274e1793bfb8150 to < 9b28287c5dea7650e6dd317591b9e82b6e145365affectede464a3180a43b6596bd267f9f274e1793bfb8150 to < f4e39ab1b2009a89c60e4cb9dbefb8140d405effaffectede464a3180a43b6596bd267f9f274e1793bfb8150 to < 5547fd950d6bf72de861b6934341e7bb0888640caffectede464a3180a43b6596bd267f9f274e1793bfb8150 to < 03455404fb6cbfd65842695df26739853fc1516baffectede464a3180a43b6596bd267f9f274e1793bfb8150 to < 142c5593379273264474f31d5956b1a0065cd576affected
Linux Linux
Default version status: affected
6.6affected0 to < 6.6unaffected6.6.157 to ≤ 6.6.*unaffected6.12.110 to ≤ 6.12.*unaffected6.18.52 to ≤ 6.18.*unaffected7.2.6 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/9b28287c5dea7650e6dd317591b9e82b6e145365 ↗
- https://git.kernel.org/stable/c/f4e39ab1b2009a89c60e4cb9dbefb8140d405eff ↗
- https://git.kernel.org/stable/c/5547fd950d6bf72de861b6934341e7bb0888640c ↗
- https://git.kernel.org/stable/c/03455404fb6cbfd65842695df26739853fc1516b ↗
- https://git.kernel.org/stable/c/142c5593379273264474f31d5956b1a0065cd576 ↗