drm/lima: fix shared irq handling on driver remove
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a1d2a6339961efc078208dc3b2f006e9e9a8e119 · < b5daf9217a50636a969bc1965f827878aeb09ffe| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/lima: fix shared irq handling on driver remove
lima uses a shared interrupt, so the interrupt handlers must be prepared to be called at any time. At driver removal time, the clocks are disabled early and the interrupts stay registered until the very end of the remove process due to the devm usage. This is potentially a bug as the interrupts access device registers which assumes clocks are enabled. A crash can be triggered by removing the driver in a kernel with CONFIG_DEBUG_SHIRQ enabled. This patch frees the interrupts at each lima device finishing callback so that the handlers are already unregistered by the time we fully disable clocks.
From the CVE record · Linux
The Linux kernel’s lima driver leaves shared interrupt handlers registered after disabling device clocks during driver removal. Removing the driver can trigger a crash when CONFIG_DEBUG_SHIRQ is enabled; the input does not specify authentication requirements or attacker access.
Engineers running Linux kernels with the lima driver should check whether their kernel includes the fix; affected versions were not specified.