CVE-2026-138911: media: mediatek: vpu: free IRQ before destroying watchdog workqueue
In the Linux kernel, the following vulnerability has been resolved:
media: mediatek: vpu: free IRQ before destroying watchdog workqueue
mtkvpuremove() destroys the watchdog workqueue while the interrupt handler requested with devmrequestirq() is still registered: the devres core frees the interrupt only after remove() has returned. If the VPU watchdog fires in that window, vpuirqhandler() queues vpu->wdt.ws on the already destroyed vpu->wdt.wq.
Fix this by calling devmfreeirq() before destroyworkqueue(), which releases the interrupt and waits for a running handler, so no new work can be queued while the workqueue is drained and freed.
This issue was found by an in-house static analysis tool.
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In mtk_vpu_remove(), call devm_free_irq() before destroy_workqueue() to release the interrupt and wait for any running handler before destroying the watchdog workqueue.