CVE Catalog

CVE-2024-27038

MediumCVSS 5.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.29%

20th percentile - higher than 20% of all known CVEs

Summary

In the Linux kernel, the clk_core_get function can dereference a NULL pointer when __clk_get_hw() returns NULL. The missing IS_ERR_OR_NULL check before using hw->core leads to the fault.

Risk Assessment

A NULL dereference in the clock subsystem can cause a kernel crash (oops/panic) and system unavailability.

Recommendation

Update the Linux kernel to a version containing the fix that checks the hw pointer before dereferencing it in clk_core_get.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

In the Linux kernel, the following vulnerability has been resolved: clk: Fix clk_core_get NULL dereference It is possible for clk_core_get to dereference a NULL in the following sequence: clk_core_get() of_clk_get_hw_from_clkspec() __of_clk_get_hw_from_provider() __clk_get_hw() __clk_get_hw() can return NULL which is dereferenced by clk_core_get() at hw->core. Prior to commit dde4eff47c82 ("clk: Look for parents with clkdev based clk_lookups") the check IS_ERR_OR_NULL() was performed which would have caught the NULL. Reading the description of this function it talks about returning NULL but that cannot be so at the moment. Update the function to check for hw before dereferencing it and return NULL if hw is NULL.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS