CVE-2024-42127

drm/lima: fix shared irq handling on driver remove

published July 30, 2024

CVSS
—
EPSS
0%
Percentile
14.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00239 · 14.2th percentile
Published
2024-07-30T07:46Z
EPSS history
Timeline
  • 30 JUL 07:46Z
    drm/lima: fix shared irq handling on driver remove
    cvelistv5