What’s Vulnerable › Vulnerabilities
CVE-2021-47657: drm/virtio: Ensure that objs is not NULL in virtio_gpu_array_put_free()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-02-26 · updated 2026-06-17
- Weakness: CWE-476
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.
Affected products
- Linux kernel: from 5.11.20 before 5.12; from 5.12.3 before 5.15.32; from 5.16 before 5.16.18; from 5.17 before 5.17.1 — fixed in 5.12, 5.15.32, 5.16.18, 5.17.1
How to fix
Upgrade to a fixed version: Linux kernel 5.12, 5.15.32, 5.16.18, 5.17.1. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/6b79f96f4a23846516e5e6e4dd37fc06f43a60dd
- https://git.kernel.org/stable/c/abc9ad36df16e27ac1c665085157f1a082d39bac
- https://git.kernel.org/stable/c/ac92b474eeeed75b8660374ba1d129a121c09da8
- https://git.kernel.org/stable/c/b094fece3810c71ceee6f0921676cb65d4e68c5a
Get alerted when CVE-2021-47657 or the next vulnerability affects your stack