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

Medium 5.5 Published Updated

A race condition in the Linux kernel's lima DRM driver can cause a crash during driver removal if debug shared IRQ handling is enabled.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-42127?

CVE-2024-42127 is a medium-severity vulnerability in Linux kernel, published on 30 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Which versions are affected by CVE-2024-42127?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-42127?

Apply the vendor's patch.

Is CVE-2024-42127 being exploited?

There is no known exploitation of CVE-2024-42127 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-42127, DEBIAN-CVE-2024-42127, GHSA-rp69-chrc-4849, UBUNTU-CVE-2024-42127.

Is CVE-2024-42127 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free