CVE-2026-142918: drm/msm/a6xx: fix use-after-free of OPP in a6xx_pm_resume
In the Linux kernel, the following vulnerability has been resolved:
drm/msm/a6xx: fix use-after-free of OPP in a6xxpmresume
The OPP reference obtained via devpmoppfindfreqceil() is dropped with devpmoppput() before being passed to devpmoppsetopp(). If the reference count reaches zero, the OPP object may be freed, leading to a use-after-free when devpmoppsetopp() dereferences it.
Fix the order of calls: first use the OPP to set the required performance state, then release the reference.
Patchwork: https://patchwork.freedesktop.org/patch/757104/
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Compensating control
In a6xx_pm_resume, call dev_pm_opp_set_opp() to set the required performance state before calling dev_pm_opp_put() to release the OPP reference.
Event History
Frequently Asked Questions
When can the use-after-free occur?
It can occur during a6xx power-management resume after an OPP is found with dev_pm_opp_find_freq_ceil(). The vulnerable sequence releases the OPP reference before dev_pm_opp_set_opp() uses that OPP object.
How can I determine whether my kernel contains the fix?
Inspect the a6xx_pm_resume code path: dev_pm_opp_set_opp() should be called while the OPP reference is still held, and dev_pm_opp_put() should occur only afterward. The listed stable kernel commits can also be used to verify whether the change has been applied.