CVE-2026-138910: media: mtk-jpeg: Fix runtime PM leak in mtk_jpegdec_worker()
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 a failed device resume drops the runtime PM reference.