drm/lima: fix shared irq handling on driver remove (Linux Linux)

CVE-2024-42127
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.24 % · percentile 15 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected a1d2a6339961efc078208dc3b2f006e9e9a8e119 < 0d60c43df59ef01c08dc7b0c45495178f9d05a13 ; affected a1d2a6339961efc078208dc3b2f006e9e9a8e119 < 25d0d9b83d855cbc5d5aa5ae3cd79d55ea0c84a8 ; affected a1d2a6339961efc078208dc3b2f006e9e9a8e119 < 17fe8b75aaf0bb1bdc31368963446b421c22d0af ; affected a1d2a6339961efc078208dc3b2f006e9e9a8e119 < 0a487e977cb8897ae4c51ecd34bbaa2b005266c9 ; affected a1d2a6339961efc078208dc3b2f006e9e9a8e119 < 04d531b9a1875846d4f89953b469ad463aa7a770 ; affected a1d2a6339961efc078208dc3b2f006e9e9a8e119 < b5daf9217a50636a969bc1965f827878aeb09ffe
Linux · Linuxaffected 5.2 ; unaffected 0 < 5.2 ; unaffected 5.4.280 ≤ 5.4.* ; unaffected 5.10.222 ≤ 5.10.* ; unaffected 5.15.163 ≤ 5.15.* ; unaffected 6.1.98 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD