CVE-2023-52571 power: supply: rk817: Fix node refcount leak
A refcount leak in the RK817 power supply driver can lead to resource exhaustion and denial of service.
- 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-2023-52571?
CVE-2023-52571 is a high-severity memory corruption vulnerability in Linux kernel, published on 2 Mar 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:
power: supply: rk817: Fix node refcount leak
Dan Carpenter reports that the Smatch static checker warning has found that there is another refcount leak in the probe function. While of_node_put() was added in one of the return paths, it should in fact be added for ALL return paths that return an error and at driver removal time.
Weakness: CWE-401
Which versions are affected by CVE-2023-52571?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-52571?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2023-52571 being exploited?
There is no known exploitation of CVE-2023-52571 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-52571, DEBIAN-CVE-2023-52571, GHSA-4hjm-m2c9-868g, UBUNTU-CVE-2023-52571.