CVE-2024-27039
Assigner: Linux
Published: 2024-05-01T12:53:57.126Z
State: PUBLISHED
descriptions: value: 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: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions: version: 6c81966107dc
lessThan: 3f8445f1c746
status: affected
versionType: git
version: 6c81966107dc
lessThan: e0b0d1c46a2c
status: affected
versionType: git
version: 6c81966107dc
lessThan: 95d1f1228c1b
status: affected
versionType: git
version: 6c81966107dc
lessThan: 2cc572e0085e
status: affected
versionType: git
version: 6c81966107dc
lessThan: d575765b1b62
status: affected
versionType: git
version: 6c81966107dc
lessThan: 64c6a38136b7
status: affected
versionType: git
product: Linux
vendor: Linux
defaultStatus: affected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions: version: 5.14
status: affected
version: 0
lessThan: 5.14
status: unaffected
versionType: custom
version: 5.15.153
lessThanOrEqual: 5.15.*
status: unaffected
versionType: custom
version: 6.1.83
lessThanOrEqual: 6.1.*
status: unaffected
versionType: custom
version: 6.6.23
lessThanOrEqual: 6.6.*
status: unaffected
versionType: custom
version: 6.7.11
lessThanOrEqual: 6.7.*
status: unaffected
versionType: custom
version: 6.8.2
lessThanOrEqual: 6.8.*
status: unaffected
versionType: custom
version: 6.9
lessThanOrEqual: *
status: unaffected
versionType: original_commit_for_fix
title: clk: hisilicon: hi3559a: Fix an erroneous devm_kfree()
x_generator: engine: bippy-d175d3acf727