CVE-2023-52870 clk: mediatek: clk-mt6765: Add check for mtk_alloc_clk_data
A missing check for memory allocation failure in the MediaTek clock driver can cause a null pointer dereference, leading to a system crash.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-52870?
CVE-2023-52870 is a medium-severity vulnerability in Linux kernel, published on 21 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: mediatek: clk-mt6765: Add check for mtk_alloc_clk_data
Add the check for the return value of mtk_alloc_clk_data() in order to avoid NULL pointer dereference.
Weakness: CWE-476
Which versions are affected by CVE-2023-52870?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-52870?
Apply the vendor's patch.
Is CVE-2023-52870 being exploited?
There is no known exploitation of CVE-2023-52870 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-52870, DEBIAN-CVE-2023-52870, GHSA-x4xc-qqhc-xfmq, UBUNTU-CVE-2023-52870.