CVE-2024-42127
JSON

5.5medium

drm/lima: fix shared irq handling on driver remove

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.24% (higher than 16% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom a1d2a6339961efc078208dc3b2f006e9e9a8e119 before 0d60c43df59ef01c08dc7b0c45495178f9d05a13, from a1d2a6339961efc078208dc3b2f006e9e9a8e119 before 25d0d9b83d855cbc5d5aa5ae3cd79d55ea0c84a8, from a1d2a6339961efc078208dc3b2f006e9e9a8e119 before 17fe8b75aaf0bb1bdc31368963446b421c22d0af, from a1d2a6339961efc078208dc3b2f006e9e9a8e119 before 0a487e977cb8897ae4c51ecd34bbaa2b005266c9, from a1d2a6339961efc078208dc3b2f006e9e9a8e119 before 04d531b9a1875846d4f89953b469ad463aa7a770, from a1d2a6339961efc078208dc3b2f006e9e9a8e119 before b5daf9217a50636a969bc1965f827878aeb09ffe, from a1d2a6339961efc078208dc3b2f006e9e9a8e119 before a6683c690bbfd1f371510cb051e8fa49507f3f5e, 5.2
Not affected: before 5.2, from 5.4.280 up to 5.4.*, from 5.10.222 up to 5.10.*, from 5.15.163 up to 5.15.*, from 6.1.98 up to 6.1.*, from 6.6.39 up to 6.6.*
CVE List
linux linux_kernelfrom 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.9NVD

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/lima: arregla el manejo de irq compartido en el controlador elimina lima usa una interrupción compartida, por lo que los controladores de interrupciones deben estar preparados para ser llamados en cualquier momento. En el momento de la eliminación del controlador, los relojes se desactivan antes de tiempo y las interrupciones permanecen registradas hasta el final del proceso de eliminación debido al uso del devm. Esto es potencialmente un error ya que las interrupciones acceden a los registros del dispositivo, lo que supone que los relojes están habilitados. Se puede provocar un bloqueo eliminando el controlador en un kernel con CONFIG_DEBUG_SHIRQ habilitado. Este parche libera las interrupciones en cada dispositivo Lima que finaliza la devolución de llamada para que los controladores ya estén dados de baja cuando deshabilitemos completamente los relojes.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-42127 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-42127 changed 2026-06-17Public domain