What’s Vulnerable › Vulnerabilities
CVE-2024-42127: drm/lima: fix shared irq handling on driver remove
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-07-30 · updated 2026-06-17
Description
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.
Affected products
- Linux kernel: from 5.2 before 5.4.280; from 5.5 before 5.10.222; from 5.11 before 5.15.163; from 5.16 before 6.1.98; from 6.2 before 6.6.39; from 6.7 before 6.9.9 — fixed in 5.10.222, 5.15.163, 5.4.280, 6.1.98, 6.6.39, 6.9.9
How to fix
Upgrade to a fixed version: Linux kernel 5.10.222, 5.15.163, 5.4.280, 6.1.98. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/04d531b9a1875846d4f89953b469ad463aa7a770
- https://git.kernel.org/stable/c/0a487e977cb8897ae4c51ecd34bbaa2b005266c9
- https://git.kernel.org/stable/c/0d60c43df59ef01c08dc7b0c45495178f9d05a13
- https://git.kernel.org/stable/c/17fe8b75aaf0bb1bdc31368963446b421c22d0af
- https://git.kernel.org/stable/c/25d0d9b83d855cbc5d5aa5ae3cd79d55ea0c84a8
- https://git.kernel.org/stable/c/a6683c690bbfd1f371510cb051e8fa49507f3f5e
- https://git.kernel.org/stable/c/b5daf9217a50636a969bc1965f827878aeb09ffe
- https://git.kernel.org/stable/c/04d531b9a1875846d4f89953b469ad463aa7a770
- https://git.kernel.org/stable/c/0a487e977cb8897ae4c51ecd34bbaa2b005266c9
- https://git.kernel.org/stable/c/0d60c43df59ef01c08dc7b0c45495178f9d05a13
- https://git.kernel.org/stable/c/17fe8b75aaf0bb1bdc31368963446b421c22d0af
- https://git.kernel.org/stable/c/25d0d9b83d855cbc5d5aa5ae3cd79d55ea0c84a8
Get alerted when CVE-2024-42127 or the next vulnerability affects your stack