CVE-2026-138841: mailbox: mtk-cmdq: Fix runtime PM leak in cmdq_mbox_flush()
In the Linux kernel, the following vulnerability has been resolved:
mailbox: mtk-cmdq: Fix runtime PM leak in cmdqmboxflush()
pmruntimegetsync() leaves the runtime PM usage counter incremented even when it fails, but cmdqmboxflush() returns the error without dropping it. The same happens when the GCE thread does not drain in time and the function bails out with -EFAULT.
Undo the reference on both error paths.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In cmdq_mbox_flush(), undo the runtime PM reference on both error paths after pm_runtime_get_sync(), including the path that returns -EFAULT.
Event History
Frequently Asked Questions
Which systems should be prioritized for review?
Prioritize Linux systems that use the MediaTek CMDQ mailbox driver and exercise cmdq_mbox_flush(). The leak occurs only on error paths in that function, rather than during a successful flush.
What conditions trigger the runtime PM reference leak?
The usage counter remains incremented if pm_runtime_get_sync() fails. It also remains incremented when the GCE thread does not drain in time and cmdq_mbox_flush() exits with -EFAULT.
Are affected Linux kernel versions identified?
No affected version ranges are provided. The supplied stable kernel references contain the remediation commits.