# CVE-2024-27038: clk: Fix clk\_core\_get NULL dereference

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-05-01 · Modified: 2026-10-15
- Aliases: UBUNTU-CVE-2024-27038, DEBIAN-CVE-2024-27038
- Record: https://cvemate.com/vulnerability/CVE-2024-27038 · JSON: https://cvemate.com/vulnerability/CVE-2024-27038/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.292%, percentile 23.436%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 118)

- debian linux (Debian): \< 6.1.85-1 \| \< 6.7.12-1
- ubuntu linux (Ubuntu): \< 5.4.0-189.209 \| \< 5.15.0-112.122 \| \< 6.8.0-35.35
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.4.0-1128.138 \| \< 5.15.0-1063.69 \| \< 6.8.0-1009.9
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1063.69~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1128.138~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): \< 5.4.0-1128.138+fips1 \| All versions (No fix recorded) \| \< 5.15.0-1063.69+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1133.140 \| \< 5.15.0-1066.75 \| \< 6.8.0-1008.8
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1065.74~20.04.1
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 35)

- <https://git.kernel.org/stable/c/d7ae7d1265686b55832a445b1db8cdd69738ac07>
- <https://git.kernel.org/stable/c/239174535dba11f7b83de0eaaa27909024f8c185>
- <https://git.kernel.org/stable/c/0efb9ef6fb95384ba631d6819e66f10392aabfa2>
- <https://git.kernel.org/stable/c/a8b2b26fdd011ebe36d68a9a321ca45801685959>
- <https://git.kernel.org/stable/c/a5d9b1aa61b401867b9066d54086b3e4ee91f8ed>
- <https://git.kernel.org/stable/c/c554badcae9c45b737a22d23454170c6020b90e6>
- <https://git.kernel.org/stable/c/6f073b24a9e2becd25ac4505a9780a87e621bb51>
- <https://git.kernel.org/stable/c/e97fe4901e0f59a0bfd524578fe3768f8ca42428>
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- <https://ubuntu.com/security/CVE-2024-27038>
- <https://www.cve.org/CVERecord?id=CVE-2024-27038>
- <https://git.kernel.org/linus/e97fe4901e0f59a0bfd524578fe3768f8ca42428>
- <https://ubuntu.com/security/notices/USN-6816-1>
- <https://ubuntu.com/security/notices/USN-6817-1>
- <https://ubuntu.com/security/notices/USN-6820-1>
- <https://ubuntu.com/security/notices/USN-6821-1>
- <https://ubuntu.com/security/notices/USN-6821-2>
- <https://ubuntu.com/security/notices/USN-6817-2>
- <https://ubuntu.com/security/notices/USN-6828-1>

---

Data as of 2026-12-05T06:22:20.063Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
