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

Published Feb 26, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

If virtiogpuobjectshmeminit() fails (e.g. due to fault injection, as it happened in the bug report by syzbot), virtiogpuarrayputfree() could be called with objs equal to NULL.

Ensure that objs is not NULL in virtiogpuarrayputfree(), or otherwise return from the function.

Affected Software

5 affected components
Linux Linux kernel>=5.11.20<5.12
Linux Linux kernel>=5.12.3<5.15.32
Linux Linux kernel>=5.16<5.16.18
Linux Linux kernel>=5.17<5.17.1
Linux Kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In virtio_gpu_array_put_free(), ensure objs is not NULL; otherwise return from the function.

Event History

Feb 26, 2025
CVE Published
via MITRE·01:54 AM
Data Sourced
via MITRE·01:54 AM
Description
Data Sourced
via Red Hat·03:21 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·06:37 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2021-47657?

CVE-2021-47657 has been classified with a severity rating of medium, indicating a moderate risk of exploitation.

2

How do I fix CVE-2021-47657?

To remediate CVE-2021-47657, update the Linux kernel to a version that is higher than 5.17.1.

3

Which Linux kernel versions are affected by CVE-2021-47657?

CVE-2021-47657 affects Linux kernel versions ranging from 5.11.20 to 5.17.1.

4

What type of vulnerability is CVE-2021-47657?

CVE-2021-47657 is a memory management vulnerability in the Linux kernel affecting the virtio GPU driver.

5

Can CVE-2021-47657 be exploited remotely?

CVE-2021-47657 requires local access to the system, thus it is not considered a remote exploit.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203