# CVE-2024-27039: clk: hisilicon: hi3559a: Fix an erroneous devm_kfree()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 19% of CVEs (2026-12-01)
- Published: 2024-05-01T12:53:57.126Z
- Modified: 2026-06-17T07:19:01.570Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

clk: hisilicon: hi3559a: Fix an erroneous devm_kfree()

'p_clk' is an array allocated just before the for loop for all clk that
need to be registered.
It is incremented at each loop iteration.

If a clk_register() call fails, 'p_clk' may point to something different
from what should be freed.

The best we can do, is to avoid this wrong release of memory.

(As written by CVE List.)

## Affected

- Linux Linux: from 6c81966107dc0caa5d2ebedbcebb5f10d865064d before 3f8445f1c746fda180a7f75372ed06b24e9cefe2; from 6c81966107dc0caa5d2ebedbcebb5f10d865064d before e0b0d1c46a2ce1e46b79d004a7270fdef872e097; from 6c81966107dc0caa5d2ebedbcebb5f10d865064d before 95d1f1228c1bb54803ae57525b76db60e99b37e4; from 6c81966107dc0caa5d2ebedbcebb5f10d865064d before 2cc572e0085ebd4b662b74a0f43222bc00df9a00; from 6c81966107dc0caa5d2ebedbcebb5f10d865064d before d575765b1b62e8bdb00af11caa1aabeb01763d9f; from 6c81966107dc0caa5d2ebedbcebb5f10d865064d before 64c6a38136b74a2f18c42199830975edd9fbc379; 5.14 (not affected: before 5.14; from 5.15.153 up to 5.15.*; from 6.1.83 up to 6.1.*; from 6.6.23 up to 6.6.*; from 6.7.11 up to 6.7.*; from 6.8.2 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 5.14 before 5.15.153; from 5.16 before 6.1.83; from 6.2 before 6.6.23; from 6.7 before 6.7.11; from 6.8 before 6.8.2

## References

- <https://git.kernel.org/stable/c/3f8445f1c746fda180a7f75372ed06b24e9cefe2> (patch)
- <https://git.kernel.org/stable/c/e0b0d1c46a2ce1e46b79d004a7270fdef872e097> (patch)
- <https://git.kernel.org/stable/c/95d1f1228c1bb54803ae57525b76db60e99b37e4> (patch)
- <https://git.kernel.org/stable/c/2cc572e0085ebd4b662b74a0f43222bc00df9a00> (patch)
- <https://git.kernel.org/stable/c/d575765b1b62e8bdb00af11caa1aabeb01763d9f> (patch)
- <https://git.kernel.org/stable/c/64c6a38136b74a2f18c42199830975edd9fbc379> (patch)

## Sources

- CVE List: [CVE-2024-27039](https://www.cve.org/CVERecord?id=CVE-2024-27039), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-27039](https://nvd.nist.gov/vuln/detail/CVE-2024-27039), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-27039 · Whole record: https://cve.day/CVE-2024-27039.json · Rebuilt by cve.day 2026-11-25T22:58:39.792Z
