CVE-2024-57799 phy: rockchip: samsung-hdptx: Set drvdata before enabling runtime PM

Medium 5.5 Published Updated

A race condition in the Rockchip Samsung HDPTX PHY driver can cause a NULL pointer dereference, leading to a kernel crash.

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

CVE-2024-57799 is a medium-severity vulnerability in Linux kernel, published on 11 Jan 2025. 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:

phy: rockchip: samsung-hdptx: Set drvdata before enabling runtime PM

In some cases, rk_hdptx_phy_runtime_resume() may be invoked before platform_set_drvdata() is executed in ->probe(), leading to a NULL pointer dereference when using the return of dev_get_drvdata().

Ensure platform_set_drvdata() is called before devm_pm_runtime_enable().

Weakness: CWE-476

Which versions are affected by CVE-2024-57799?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-57799?

Apply the vendor's patch.

Is CVE-2024-57799 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-57799, DEBIAN-CVE-2024-57799, GHSA-9v96-cvr8-jw8x, UBUNTU-CVE-2024-57799.

Is CVE-2024-57799 in your software?

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

Check your SBOMs for free