CVE-2022-50559 clk: imx: scu: fix memleak on platform_device_add() fails
A memory leak in the Linux kernel's i.MX SCU clock driver can lead to resource exhaustion and denial of service when device addition fails.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Not stated
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-50559?
CVE-2022-50559 is a memory corruption vulnerability in Linux, published on 22 Oct 2025.
Official description
In the Linux kernel, the following vulnerability has been resolved:
clk: imx: scu: fix memleak on platform_device_add() fails
No error handling is performed when platform_device_add() fails. Add error processing before return, and modified the return value.
Which versions are affected by CVE-2022-50559?
How do I fix CVE-2022-50559?
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-2022-50559 being exploited?
There is no known exploitation of CVE-2022-50559 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2022-50559, GHSA-vrgf-2c29-h6h9, UBUNTU-CVE-2022-50559.