CVE-2024-42127

published 30 Jul 2024 · updated 11 May 2026

drm/lima: fix shared irq handling on driver remove

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 04d531b9a1875846d4f89953b469ad463aa7a770, Kernel 0a487e977cb8897ae4c51ecd34bbaa2b005266c9, Kernel 0d60c43df59ef01c08dc7b0c45495178f9d05a13 and 4 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.2, >=a1d2a6339961efc078208dc3b2f006e9e9a8e119 <04d531b9a1875846d4f89953b469ad463aa7a770, >=a1d2a6339961efc078208dc3b2f006e9e9a8e119 <0a487e977cb8897ae4c51ecd34bbaa2b005266c9, >=a1d2a6339961efc078208dc3b2f006e9e9a8e119 <0d60c43df59ef01c08dc7b0c45495178f9d05a13, >=a1d2a6339961efc078208dc3b2f006e9e9a8e119 <17fe8b75aaf0bb1bdc31368963446b421c22d0af, >=a1d2a6339961efc078208dc3b2f006e9e9a8e119 <25d0d9b83d855cbc5d5aa5ae3cd79d55ea0c84a8, >=a1d2a6339961efc078208dc3b2f006e9e9a8e119 <a6683c690bbfd1f371510cb051e8fa49507f3f5e, >=a1d2a6339961efc078208dc3b2f006e9e9a8e119 <b5daf9217a50636a969bc1965f827878aeb09ffe04d531b9a1875846d4f89953b469ad463aa7a770, 0a487e977cb8897ae4c51ecd34bbaa2b005266c9, 0d60c43df59ef01c08dc7b0c45495178f9d05a13, 17fe8b75aaf0bb1bdc31368963446b421c22d0af, 25d0d9b83d855cbc5d5aa5ae3cd79d55ea0c84a8, a6683c690bbfd1f371510cb051e8fa49507f3f5e, b5daf9217a50636a969bc1965f827878aeb09ffe

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-42127 severity on Zeptric[![CVE-2024-42127](https://zeptric.io/badge/cve/CVE-2024-42127.svg)](https://zeptric.io/cve/CVE-2024-42127)