CVE-2026-90282: phy: qcom: qmp-usb-legacy: Fix possible NULL-deref on early runtime suspend
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
phy: qcom: qmp-usb-legacy: 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.
The Linux kernel CVE team has assigned CVE-2026-90282 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.6 with commit e464a3180a43b6596bd267f9f274e1793bfb8150 and fixed in 6.6.157 with commit 602059c5128a78857ca92bd22791ab640185e381 Issue introduced in 6.6 with commit e464a3180a43b6596bd267f9f274e1793bfb8150 and fixed in 6.12.110 with commit 29449ce1f5958e36df80318878016e3ecac26b40 Issue introduced in 6.6 with commit e464a3180a43b6596bd267f9f274e1793bfb8150 and fixed in 6.18.52 with commit 52ad86ea5f98d29a7a29d9ba12e24276c6e30acd Issue introduced in 6.6 with commit e464a3180a43b6596bd267f9f274e1793bfb8150 and fixed in 7.2.6 with commit 0f9789d1b63e7d9f868ac9c29564339a4c03ceb5 Issue introduced in 6.6 with commit e464a3180a43b6596bd267f9f274e1793bfb8150 and fixed in 7.3-rc1 with commit 8e3687f7e18fe84372e86875709d56c37e7525a8
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-90282
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/phy/qualcomm/phy-qcom-qmp-usb-legacy.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/602059c5128a78857ca92bd22791ab640185e381 https://git.kernel.org/stable/c/29449ce1f5958e36df80318878016e3ecac26b40 https://git.kernel.org/stable/c/52ad86ea5f98d29a7a29d9ba12e24276c6e30acd https://git.kernel.org/stable/c/0f9789d1b63e7d9f868ac9c29564339a4c03ceb5 https://git.kernel.org/stable/c/8e3687f7e18fe84372e86875709d56c37e7525a8