# CVE-2021-47657: drm/virtio: Ensure that objs is not NULL in virtio_gpu_array_put_free()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2025-02-26T01:54:20.727Z
- Modified: 2026-06-17T04:18:15.883Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 377f8331d0565e6f71ba081c894029a92d0c7e77 before b094fece3810c71ceee6f0921676cb65d4e68c5a; from 377f8331d0565e6f71ba081c894029a92d0c7e77 before ac92b474eeeed75b8660374ba1d129a121c09da8; from 377f8331d0565e6f71ba081c894029a92d0c7e77 before abc9ad36df16e27ac1c665085157f1a082d39bac; from 377f8331d0565e6f71ba081c894029a92d0c7e77 before 6b79f96f4a23846516e5e6e4dd37fc06f43a60dd; 244dbb4abe123779ec30e7c6ca283a681aba5c94; 1016c0f62f73d5d2c3a5d1ad1e1fb0cdce1993ae; from 5.11.20 before 5.12; from 5.12.3 before 5.13; 5.13 (not affected: before 5.13; from 5.15.32 up to 5.15.*; from 5.16.18 up to 5.16.*; from 5.17.1 up to 5.17.*; from 5.18 up to *)
- linux 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

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/b094fece3810c71ceee6f0921676cb65d4e68c5a> (patch)
- <https://git.kernel.org/stable/c/ac92b474eeeed75b8660374ba1d129a121c09da8> (patch)
- <https://git.kernel.org/stable/c/abc9ad36df16e27ac1c665085157f1a082d39bac> (patch)
- <https://git.kernel.org/stable/c/6b79f96f4a23846516e5e6e4dd37fc06f43a60dd> (patch)

## Sources

- CVE List: [CVE-2021-47657](https://www.cve.org/CVERecord?id=CVE-2021-47657), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2021-47657](https://nvd.nist.gov/vuln/detail/CVE-2021-47657), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47657 · Whole record: https://cve.day/CVE-2021-47657.json · Rebuilt by cve.day 2026-11-25T22:58:09.009Z
