CVE-2024-27039

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

MEDIUM
5.5
CVSS Score
Published: May 1, 2024 at 12:53 PM UTC
Updated: June 17, 2026 at 07:19 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.14 ≤ v < 5.15.1535.14 ≤ v < 6.1.835.14 ≤ v < 6.6.235.14 ≤ v < 6.7.115.14 ≤ v < 6.8.25.14 ≤ v < 6.95.16 ≤ v < 6.1.836.2 ≤ v < 6.6.236.7 ≤ v < 6.7.116.8 ≤ v < 6.8.25.146c81966107dc0caa5d2ebedbcebb5f10d865064d
Vendor states this is fixed in 2cc572e0085ebd4b662b74a0f43222bc00df9a00 (fixed)
Vendor states this is fixed in 3f8445f1c746fda180a7f75372ed06b24e9cefe2 (fixed)
Vendor states this is fixed in 64c6a38136b74a2f18c42199830975edd9fbc379 (fixed)
Vendor states this is fixed in 95d1f1228c1bb54803ae57525b76db60e99b37e4 (fixed)
Vendor states this is fixed in d575765b1b62e8bdb00af11caa1aabeb01763d9f (fixed)
Vendor states this is fixed in e0b0d1c46a2ce1e46b79d004a7270fdef872e097 (fixed)
Vendor states this is fixed in 5.14 (unaffected)
Vendor states this is fixed in 5.15.153 (unaffected)
Vendor states this is fixed in 6.1.83 (unaffected)
Vendor states this is fixed in 6.6.23 (unaffected)
Vendor states this is fixed in 6.7.11 (unaffected)
Vendor states this is fixed in 6.8.2 (unaffected)
Vendor states this is fixed in 6.9 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2cc572e0085ebd4b662b74a0f43222bc00df9a00
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3f8445f1c746fda180a7f75372ed06b24e9cefe2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/64c6a38136b74a2f18c42199830975edd9fbc379
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/95d1f1228c1bb54803ae57525b76db60e99b37e4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d575765b1b62e8bdb00af11caa1aabeb01763d9f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e0b0d1c46a2ce1e46b79d004a7270fdef872e097

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card