CVE-2026-138908: media: mediatek: vcodec: destroy core workqueue on remove
In the Linux kernel, the following vulnerability has been resolved:
media: mediatek: vcodec: destroy core workqueue on remove
The decoder probe allocates coreworkqueue for architectures with a LAT processor. The probe failure paths destroy the workqueues, but the remove() function only destroys decodeworkqueue.
As a result, removing a decoder on LAT architectures leaves coreworkqueue allocated after the device lifetime has ended.
Destroy coreworkqueue during remove for latency-based decoder architectures, matching the cleanup performed by the probe failure paths.
This issue was found by manual code inspection.
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.1.193 - 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.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1 - Compensating control
Destroy core_workqueue in the remove() function for the latency-based decoder, alongside decode_workqueue.
Event History
Frequently Asked Questions
Which systems are affected?
The issue affects MediaTek decoder configurations that use a LAT processor, where the decoder probe allocates core_workqueue. Configurations without a LAT processor are not described as allocating this workqueue.
When does the resource leak occur?
It occurs when a decoder device is removed. The remove path destroys decode_workqueue but, before the fix, does not destroy core_workqueue on latency-based decoder architectures.
What is the immediate mitigation if updating is not possible?
Avoid removing affected decoder devices where practical, since the leak is associated with device removal. The provided data does not identify another workaround.
How can I tell whether a fix is present?
Check whether the kernel includes the change that destroys core_workqueue during decoder removal for LAT architectures. The provided references identify stable kernel commits containing the fix.