Bug 2301492 (CVE-2024-42127) - CVE-2024-42127 kernel: drm/lima: fix shared irq handling on driver remove
Summary: CVE-2024-42127 kernel: drm/lima: fix shared irq handling on driver remove
Keywords:
Status: NEW
Alias: CVE-2024-42127
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2301808
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-30 08:34 UTC by OSIDB Bzimport
Modified: 2024-07-31 04:56 UTC (History)
4 users (show)

Fixed In Version: kernel 5.4.280, kernel 5.10.222, kernel 5.15.163, kernel 6.1.98, kernel 6.6.39, kernel 6.9.9, kernel 6.10
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-07-30 08:34:43 UTC
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.

Comment 1 Mauro Matteo Cascella 2024-07-30 19:43:20 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024073026-CVE-2024-42127-c29c@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-30 19:43:41 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2301808]


Note You need to log in before you can comment on or make changes to this bug.