CVE-2024-27002

Source
https://cve.org/CVERecord?id=CVE-2024-27002
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-27002.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-27002
Downstream
Related
Published
2024-05-01T05:28:44.902Z
Modified
2026-03-20T12:35:20.786331Z
Summary
clk: mediatek: Do a runtime PM get on controllers during probe
Details

In the Linux kernel, the following vulnerability has been resolved:

clk: mediatek: Do a runtime PM get on controllers during probe

mt8183-mfgcfg has a mutual dependency with genpd during the probing stage, which leads to a deadlock in the following call stack:

CPU0: genpdlock --> clkpreparelock genpdpoweroffworkfn() genpdlock() genericpmdomain::poweroff() clkunprepare() clkpreparelock()

CPU1: clkpreparelock --> genpdlock clkregister() __clkcoreinit() clkpreparelock() clkpmruntimeget() genpdlock()

Do a runtime PM get at the probe function to make sure clk_register() won't acquire the genpd lock. Instead of only modifying mt8183-mfgcfg, do this on all mediatek clock controller probings because we don't believe this would cause any regression.

Verified on MT8183 and MT8192 Chromebooks.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27002.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
acddfc2c261b3653ab1c1b567a427299bac20d31
Fixed
165d226472575b213dd90dfda19d1605dd7c19a8
Fixed
c0dcd5c072e2a3fff886f673e6a5d9bf8090c4cc
Fixed
b62ed25feb342eab052822eff0c554873799a4f5
Fixed
2f7b1d8b5505efb0057cd1ab85fca206063ea4c3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-27002.json"