CVE-2024-27002 clk: mediatek: Do a runtime PM get on controllers during probe

Medium 5.5 Published Updated

A deadlock in the MediaTek clock driver during probe causes a system hang, requiring a kernel patch to resolve the locking order issue.

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-27002?

CVE-2024-27002 is a medium-severity vulnerability in Linux kernel, published on 1 May 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:

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: genpd_lock --> clk_prepare_lock genpd_power_off_work_fn() genpd_lock() generic_pm_domain::power_off() clk_unprepare() clk_prepare_lock()

CPU1: clk_prepare_lock --> genpd_lock clk_register() __clk_core_init() clk_prepare_lock() clk_pm_runtime_get() genpd_lock()

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.

Weakness: CWE-667

Which versions are affected by CVE-2024-27002?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-27002?

Apply the vendor's patch.

Is CVE-2024-27002 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-54592, BELL-CVE-2024-27002, DEBIAN-CVE-2024-27002, GHSA-437h-4cv6-6q92, ROOT-OS-DEBIAN-11-CVE-2024-27002, ROOT-OS-UBUNTU-2204-CVE-2024-27002 and 1 more.

Is CVE-2024-27002 in your software?

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

Check your SBOMs for free