CVE-2021-47657 drm/virtio: Ensure that objs is not NULL in virtio_gpu_array_put_free()
A null pointer dereference in the Linux kernel's virtio GPU driver can cause a system crash when object initialization fails.
- 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-2021-47657?
CVE-2021-47657 is a medium-severity vulnerability in Linux kernel, published on 26 Feb 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:
drm/virtio: Ensure that objs is not NULL in virtio_gpu_array_put_free()
If virtio_gpu_object_shmem_init() fails (e.g. due to fault injection, as it happened in the bug report by syzbot), virtio_gpu_array_put_free() could be called with objs equal to NULL.
Ensure that objs is not NULL in virtio_gpu_array_put_free(), or otherwise return from the function.
Weakness: CWE-476
Which versions are affected by CVE-2021-47657?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47657?
Apply the vendor's patch.
Is CVE-2021-47657 being exploited?
There is no known exploitation of CVE-2021-47657 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47657, GHSA-v9fj-g635-p6mj, UBUNTU-CVE-2021-47657.