CVE-2024-27038

clk: Fix clk_core_get NULL dereference

No CVSS score yet EPSS 0.29%

Published 1 May 2024 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2024-27038

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-27038 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Exploitation

EPSS 0.29%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 23.4% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 1 May 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from dde4eff47c82c52a72af333d9e55370eee6d95d6, before d7ae7d1265686b55832a445b1db8cdd69738ac07
affected from dde4eff47c82c52a72af333d9e55370eee6d95d6, before 239174535dba11f7b83de0eaaa27909024f8c185
affected from dde4eff47c82c52a72af333d9e55370eee6d95d6, before 0efb9ef6fb95384ba631d6819e66f10392aabfa2
affected from dde4eff47c82c52a72af333d9e55370eee6d95d6, before a8b2b26fdd011ebe36d68a9a321ca45801685959
affected from dde4eff47c82c52a72af333d9e55370eee6d95d6, before a5d9b1aa61b401867b9066d54086b3e4ee91f8ed
affected from dde4eff47c82c52a72af333d9e55370eee6d95d6, before c554badcae9c45b737a22d23454170c6020b90e6
affected from dde4eff47c82c52a72af333d9e55370eee6d95d6, before 6f073b24a9e2becd25ac4505a9780a87e621bb51
affected from dde4eff47c82c52a72af333d9e55370eee6d95d6, before e97fe4901e0f59a0bfd524578fe3768f8ca42428
Other versions: unaffected
Linux
affected 5.2
unaffected before 5.2
unaffected from 5.4.273 up to and including 5.4.*
unaffected from 5.10.214 up to and including 5.10.*
unaffected from 5.15.153 up to and including 5.15.*
unaffected from 6.1.83 up to and including 6.1.*
unaffected from 6.6.23 up to and including 6.6.*
unaffected from 6.7.11 up to and including 6.7.*
unaffected from 6.8.2 up to and including 6.8.*
unaffected 6.9 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-27038 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-27038

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-27038
trivy image --scanners vuln IMAGE | grep CVE-2024-27038

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-27038 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.