# CVE-2024-42127: drm/lima: fix shared irq handling on driver remove

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-07-30T07:46:24.070Z
- Modified: 2026-06-17T07:48:53.480Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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.*; from 6.9.9 up to 6.9.*; from 6.10 up to *)
- linux 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

## References

- <https://git.kernel.org/stable/c/0d60c43df59ef01c08dc7b0c45495178f9d05a13> (patch)
- <https://git.kernel.org/stable/c/25d0d9b83d855cbc5d5aa5ae3cd79d55ea0c84a8> (patch)
- <https://git.kernel.org/stable/c/17fe8b75aaf0bb1bdc31368963446b421c22d0af> (patch)
- <https://git.kernel.org/stable/c/0a487e977cb8897ae4c51ecd34bbaa2b005266c9> (patch)
- <https://git.kernel.org/stable/c/04d531b9a1875846d4f89953b469ad463aa7a770> (patch)
- <https://git.kernel.org/stable/c/b5daf9217a50636a969bc1965f827878aeb09ffe> (patch)
- <https://git.kernel.org/stable/c/a6683c690bbfd1f371510cb051e8fa49507f3f5e> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-42127](https://www.cve.org/CVERecord?id=CVE-2024-42127), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-42127](https://nvd.nist.gov/vuln/detail/CVE-2024-42127), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-42127 · Whole record: https://cve.day/CVE-2024-42127.json · Rebuilt by cve.day 2026-11-25T22:58:43.409Z
