5.5medium
clk: hisilicon: hi3559a: Fix an erroneous devm_kfree()
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.27% (higher than 19% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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.* | CVE List |
| 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 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: clk: hisilicon: hi3559a: corrige un devm_kfree() erróneo 'p_clk' es una matriz asignada justo antes del bucle for para todos los clk que deben registrarse. Se incrementa en cada iteración del bucle. Si falla una llamada a clk_register(), 'p_clk' puede señalar algo diferente de lo que debería liberarse. Lo mejor que podemos hacer es evitar esta liberación incorrecta de memoria.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-27039 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-27039 changed 2026-06-17 | Public domain |