CVE-2024-42127
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-42127 affects the Linux kernel's DRM/Lima driver. The vulnerability was discovered in July 2024 and involves a shared interrupt handling issue during driver removal. The lima driver uses shared interrupts that must be prepared to be called at any time, but during driver removal, the clocks are disabled early while interrupts remain registered until the end of the removal process due to devm usage (Kernel Commit).

Technical details

The vulnerability stems from a timing issue where interrupt handlers access device registers assuming clocks are enabled, but the clocks are disabled early in the driver removal process. This can lead to a crash when removing the driver in kernels with CONFIGDEBUGSHIRQ enabled. The issue specifically affects the lima GPU driver's interrupt handling mechanism during the driver removal sequence (Kernel Commit).

Impact

The vulnerability can trigger a system crash during driver removal operations when specific debugging configurations are enabled. This primarily affects systems using the Lima GPU driver with CONFIGDEBUGSHIRQ enabled (NVD).

Mitigation and workarounds

The issue has been fixed by freeing the interrupts at each lima device finishing callback, ensuring the handlers are unregistered before the clocks are fully disabled. The fix has been implemented in various Linux kernel versions including Ubuntu 24.04 LTS (6.8.0-48.48), Ubuntu 22.04 LTS (5.15.0-121.131), and Ubuntu 20.04 LTS (5.4.0-195.215) (Ubuntu Security).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-gcp-5.15
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • kernel-64k-debug-core
NoYesDec 09, 2025
CVE-2025-40340MEDIUM6.4
  • Linux KernelLinux Kernel
  • kernel-rt-debug-kvm
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-64k
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • linux-azure-fde-6.14
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management