CVE-2022-50848 drivers: dio: fix possible memory leak in dio_init()
A memory leak in the Linux kernel dio driver can lead to resource exhaustion and denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Not stated
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-50848?
CVE-2022-50848 is a memory corruption vulnerability in Linux, published on 30 Dec 2025.
Official description
In the Linux kernel, the following vulnerability has been resolved:
drivers: dio: fix possible memory leak in dio_init()
If device_register() returns error, the 'dev' and name needs be freed. Add a release function, and then call put_device() in the error path, so the name is freed in kobject_cleanup() and to the 'dev' is freed in release function.
Which versions are affected by CVE-2022-50848?
How do I fix CVE-2022-50848?
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-50848 being exploited?
There is no known exploitation of CVE-2022-50848 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2022-50848, GHSA-82rq-cj65-cv9p, UBUNTU-CVE-2022-50848.