NULL pointer dereference in Linux

CVE-2021-47657

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.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.

EPSS exploit prediction

EPSS 0.003, 20.5th percentile (last changed ); unchanged over 30 days. About EPSS.

Affected products

  • Linux — versions 5.12.3, 5.16.18, 244dbb4abe123779ec30e7c6ca283a681aba5c94
  • Linux Kernel

Weakness classification (CWE)

References