AZL-116797: CVE-2026-138910 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
media: mtk-jpeg: Fix runtime PM leak in mtkjpegdecworker()
pmruntimegetsync() leaves the device's runtime PM usage count incremented even when it fails. mtkjpegdecworker() jumps to decend on that failure, which does not call pmruntimeput(), so the reference taken by the failed resume is leaked.
Use pmruntimeresumeandget() instead, which drops the reference again when resuming the device fails.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In mtk_jpegdec_worker(), replace pm_runtime_get_sync() with pm_runtime_resume_and_get() so the runtime PM reference is dropped if device resume fails.
Event History
Frequently Asked Questions
What conditions are needed to trigger the issue?
The issue is triggered when mtk_jpegdec_worker() attempts to resume the device through pm_runtime_get_sync() and that resume operation fails. The failed path leaks a runtime PM usage-count reference because it exits through dec_end without calling pm_runtime_put().
What is the practical impact of a failed resume on an affected system?
Each failed runtime-resume attempt in this path can leave the device runtime PM usage count incremented. This can prevent the device from being runtime-suspended as expected.
What change resolves the leaked reference?
The resolved code uses pm_runtime_resume_and_get() in place of pm_runtime_get_sync(). pm_runtime_resume_and_get() drops the reference when device resume fails.