{"id":"CVE-2024-27039","summary":"clk: hisilicon: hi3559a: Fix an erroneous devm_kfree()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: hisilicon: hi3559a: Fix an erroneous devm_kfree()\n\n'p_clk' is an array allocated just before the for loop for all clk that\nneed to be registered.\nIt is incremented at each loop iteration.\n\nIf a clk_register() call fails, 'p_clk' may point to something different\nfrom what should be freed.\n\nThe best we can do, is to avoid this wrong release of memory.","modified":"2026-03-20T12:35:22.353770Z","published":"2024-05-01T12:53:57.126Z","related":["SUSE-SU-2024:1644-1","SUSE-SU-2024:1659-1","SUSE-SU-2024:1663-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27039.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2cc572e0085ebd4b662b74a0f43222bc00df9a00"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3f8445f1c746fda180a7f75372ed06b24e9cefe2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/64c6a38136b74a2f18c42199830975edd9fbc379"},{"type":"WEB","url":"https://git.kernel.org/stable/c/95d1f1228c1bb54803ae57525b76db60e99b37e4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d575765b1b62e8bdb00af11caa1aabeb01763d9f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e0b0d1c46a2ce1e46b79d004a7270fdef872e097"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27039.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27039"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6c81966107dc0caa5d2ebedbcebb5f10d865064d"},{"fixed":"3f8445f1c746fda180a7f75372ed06b24e9cefe2"},{"fixed":"e0b0d1c46a2ce1e46b79d004a7270fdef872e097"},{"fixed":"95d1f1228c1bb54803ae57525b76db60e99b37e4"},{"fixed":"2cc572e0085ebd4b662b74a0f43222bc00df9a00"},{"fixed":"d575765b1b62e8bdb00af11caa1aabeb01763d9f"},{"fixed":"64c6a38136b74a2f18c42199830975edd9fbc379"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-27039.json"}}],"schema_version":"1.7.5"}