CVE-2024-42127: drm/lima: fix shared irq handling on driver remove
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 CONFIGDEBUGSHIRQ 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.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-42127?
CVE-2024-42127 is classified as a medium severity vulnerability in the Linux kernel.
How do I fix CVE-2024-42127?
To fix CVE-2024-42127, update to the patched versions: 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.119-1, 6.12.11-1, or 6.12.12-1.
Which versions of the Linux kernel are affected by CVE-2024-42127?
Versions prior to 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.119-1, 6.12.11-1, and 6.12.12-1 are affected by CVE-2024-42127.
What component of the Linux kernel does CVE-2024-42127 impact?
CVE-2024-42127 impacts the Lima driver in the Linux kernel related to shared IRQ handling.
Is there a workaround for CVE-2024-42127?
There is no known workaround for CVE-2024-42127; updating to the fixed versions is recommended.