CVE-2026-98404: drm/virtio: Fix a NULL vs ERR_PTR() bug in virtio_gpu_user_framebuffer_create()

Published Oct 14, 2026
·
Updated

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

drm/virtio: Fix a NULL vs ERRPTR() bug in virtiogpuuserframebuffercreate()

Smatch complains that returning a NULL here will lead to a NULL pointer dereference in drmmodeaddfb2(). Return an error pointer instead.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In drm/virtio, update virtio_gpu_user_framebuffer_create() to return an ERR_PTR() error pointer instead of NULL when creation fails, preventing a NULL-pointer dereference in drm_mode_addfb2().

Event History

Oct 14, 2026
CVE Published
via MITRE·01:26 PM
Data Sourced
via MITRE·01:26 PM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

The issue is in the Linux kernel's drm/virtio code and affects the virtio GPU user framebuffer creation path. The provided data does not identify specific kernel versions or configurations.

2

What is the observed failure mode?

A NULL return from virtio_gpu_user_framebuffer_create() can result in a NULL pointer dereference in drm_mode_addfb2(). The fix changes that return to an error pointer.

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