clk: hisilicon: hi3559a: Fix an erroneous devm_kfree()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6c81966107dc0caa5d2ebedbcebb5f10d865064d · < 64c6a38136b74a2f18c42199830975edd9fbc379| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s hi3559a clock driver can release the wrong memory if clk_register() fails. The input does not describe how an attacker could trigger that failure or specify network access, authentication, or user interaction requirements.
Engineers running Linux kernels with the hi3559a clock driver should check whether their kernel is affected; affected versions are not specified.