CVE-2024-27039 clk: hisilicon: hi3559a: Fix an erroneous devm_kfree()
A memory management error in the HiSilicon clock driver can lead to a use-after-free condition, potentially causing a system crash.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-27039?
CVE-2024-27039 is a medium-severity use after free vulnerability in Linux kernel, published on 1 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2024-27039?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-27039?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2024-27039 being exploited?
There is no known exploitation of CVE-2024-27039 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-27039, DEBIAN-CVE-2024-27039, GHSA-2gg6-7q9p-2qrr, UBUNTU-CVE-2024-27039.