CVE-2021-47657

drm/virtio: Ensure that objs is not NULL in virtio_gpu_array_put_free()

MEDIUM
5.5
CVSS Score
Published: February 26, 2025 at 01:54 AM UTC
Updated: June 17, 2026 at 04:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 5.11.20v ≥ 5.12.35.11.20 ≤ v < 5.125.12.3 ≤ v < 5.135.12.3 ≤ v < 5.15.325.13 ≤ v < 5.15.325.13 ≤ v < 5.16.185.13 ≤ v < 5.17.15.13 ≤ v < 5.185.16 ≤ v < 5.16.185.17 ≤ v < 5.17.11016c0f62f73d5d2c3a5d1ad1e1fb0cdce1993ae244dbb4abe123779ec30e7c6ca283a681aba5c94377f8331d0565e6f71ba081c894029a92d0c7e775.11.205.12.35.13
Vendor states this is fixed in 6b79f96f4a23846516e5e6e4dd37fc06f43a60dd (fixed)
Vendor states this is fixed in abc9ad36df16e27ac1c665085157f1a082d39bac (fixed)
Vendor states this is fixed in ac92b474eeeed75b8660374ba1d129a121c09da8 (fixed)
Vendor states this is fixed in b094fece3810c71ceee6f0921676cb65d4e68c5a (fixed)
Affected range stops below 5.12, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 5.13 (unaffected)
Vendor states this is fixed in 5.15.32 (unaffected)
Vendor states this is fixed in 5.16.18 (unaffected)
Vendor states this is fixed in 5.17.1 (unaffected)
Vendor states this is fixed in 5.18 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6b79f96f4a23846516e5e6e4dd37fc06f43a60dd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/abc9ad36df16e27ac1c665085157f1a082d39bac
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ac92b474eeeed75b8660374ba1d129a121c09da8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b094fece3810c71ceee6f0921676cb65d4e68c5a

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card