CVE-2022-50509 media: coda: Add check for kmalloc
A missing check for kmalloc return value in the Linux kernel coda driver can lead to a null pointer dereference and 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-2022-50509?
CVE-2022-50509 is a medium-severity vulnerability in Linux kernel, published on 7 Oct 2025. 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:
media: coda: Add check for kmalloc
As the kmalloc may return NULL pointer, it should be better to check the return value in order to avoid NULL poineter dereference, same as the others.
Weakness: CWE-476
Which versions are affected by CVE-2022-50509?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-50509?
Apply the vendor's patch.
Is CVE-2022-50509 being exploited?
There is no known exploitation of CVE-2022-50509 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-50509, GHSA-c5x6-wf2w-722j, UBUNTU-CVE-2022-50509.