In the Linux kernel, the following vulnerability has been resolved: media: mediatek: vpu: free IRQ before destroying watchdog workqueue mtk_vpu_remove() destroys the watchdog workqueue while the interrupt handler requested with devm_request_irq() is still registered: the devres core frees the interrupt only after remove() has returned. If the VPU watchdog fires in that window, vpu_irq_handler() queues vpu->wdt.ws on the already destroyed vpu->wdt.wq. Fix this by calling devm_free_irq() before destroy_workqueue(), 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.
https://git.kernel.org/stable/c/df79221ab69e8a08ecc7efc9455c6df28347ef33
https://git.kernel.org/stable/c/bf8913279f3ea5901ca6ca7e25d24adf7ce49de5
https://git.kernel.org/stable/c/9853bb3210e781913d97691ee501324b8db5d399
https://git.kernel.org/stable/c/3a587dfb8c61352041d2b32da02c6e45de32c458
https://git.kernel.org/stable/c/2c50b58d4105f6dbaa36d6306087954b9100e9ae
https://git.kernel.org/stable/c/2ac7e12a4f0d39c56e4f51dbf7838cd93dc16dc7
https://git.kernel.org/stable/c/2590068009d684c3f7f3511b98a2d20ac688e730
https://git.kernel.org/stable/c/1a876c18f4831f66aa4a86b99e3adf6562d7dfdb