CVE-2026-98609: drm/virtio: fix object leak when drm_gem_handle_create() fails

Published Oct 18, 2026
·
Updated

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

drm/virtio: fix object leak when drmgemhandlecreate() fails

virtiogpugemcreate() owns the reference taken by virtiogpuobjectcreate(). On the drmgemhandlecreate() error path it calls drmgemobjectrelease() instead of dropping that reference.

drmgemobjectrelease() is the inverse of drmgemobjectinit() and does not touch the reference count or call obj->funcs->free(), so it is only correct as the last step of a destructor, as in virtiogpucleanupobject(). Using it here leaves the bo at refcount 1 with no remaining reference, so virtiogpufreeobject() never runs and the shmem pages, sg table and virtiogpuobject are leaked. Since virtiogpuobjectcreate() has already set bo->created, VIRTIOGPUCMDRESOURCEUNREF is not queued either, leaking the host-side resource and the resource id.

drmgemhandlecreatetail() drops the handle reference on all of its internal error paths, so the caller only has to drop its own. Use drmgemobjectput(), matching the success path below.

Affected Software

1 affected component
Linux Linux kernel

Event History

Oct 18, 2026
CVE Published
via MITRE·03:19 PM
Data Sourced
via MITRE·03:19 PM
Description
Data Sourced
via NVD·04:17 PM
Description

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