CVE-2024-27039

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

State
Published
Severity
Not scored
Published
May 1, 2024
Updated
May 11, 2026
Reserved
Feb 19, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 6c81966107dc0caa5d2ebedbcebb5f10d865064d to before 3f8445f1c746fda180a7f75372ed06b24e9cefe2Affected
  • 6c81966107dc0caa5d2ebedbcebb5f10d865064d to before e0b0d1c46a2ce1e46b79d004a7270fdef872e097Affected
  • 6c81966107dc0caa5d2ebedbcebb5f10d865064d to before 95d1f1228c1bb54803ae57525b76db60e99b37e4Affected
  • 6c81966107dc0caa5d2ebedbcebb5f10d865064d to before 2cc572e0085ebd4b662b74a0f43222bc00df9a00Affected
  • 6c81966107dc0caa5d2ebedbcebb5f10d865064d to before d575765b1b62e8bdb00af11caa1aabeb01763d9fAffected
  • 6c81966107dc0caa5d2ebedbcebb5f10d865064d to before 64c6a38136b74a2f18c42199830975edd9fbc379Affected
LinuxLinux
  • 5.14Affected
  • before 5.14Not affected
  • 5.15.153 through 5.15.*Not affected
  • 6.1.83 through 6.1.*Not affected
  • 6.6.23 through 6.6.*Not affected
  • 6.7.11 through 6.7.*Not affected
  • 6.8.2 through 6.8.*Not affected
  • 6.9 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.