CVE-2026-98607: drm/virtio: fix object leaks in virtio_gpu_resource_create_blob_ioctl()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/virtio: fix object leaks in virtio_gpu_resource_create_blob_ioctl()
virtio_gpu_resource_create_blob_ioctl() calls drm_gem_object_release() on both the virtio_gpu_resource_assign_uuid() and drm_gem_handle_create() error paths instead of dropping the reference it owns, so obj->funcs->free() never runs and the virtio_gpu_object, the resource id and the host-side resource are leaked.
Use drm_gem_object_put() instead.
The Linux kernel CVE team has assigned CVE-2026-98607 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.11 with commit 897b4d1acaf56314652c6a8e75d9f86b5e45638d and fixed in 5.15.222 with commit 73ea38a89b923fa08047885a0845d1cd89261ead Issue introduced in 5.11 with commit 897b4d1acaf56314652c6a8e75d9f86b5e45638d and fixed in 6.1.189 with commit eea473532a286cd1b13cddbec5c645989f43a3aa Issue introduced in 5.11 with commit 897b4d1acaf56314652c6a8e75d9f86b5e45638d and fixed in 6.6.158 with commit 88c60c06a2a5244f5dd32ec098e633add114890f Issue introduced in 5.11 with commit 897b4d1acaf56314652c6a8e75d9f86b5e45638d and fixed in 6.12.112 with commit 0455867bbd95ffa9d9db0a1c6dda500f8126232c Issue introduced in 5.11 with commit 897b4d1acaf56314652c6a8e75d9f86b5e45638d and fixed in 6.18.55 with commit 81c6769e069d703154087377d1749af2f1b74e49 Issue introduced in 5.11 with commit 897b4d1acaf56314652c6a8e75d9f86b5e45638d and fixed in 7.2.9 with commit 02df4e24dc4c0bf5b0425a6acabc5201d7f04fc2 Issue introduced in 5.11 with commit 897b4d1acaf56314652c6a8e75d9f86b5e45638d and fixed in 7.3-rc5 with commit 24b6d5c7641412c9ebef0d4c8b888d49a0e6b880
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98607
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/gpu/drm/virtio/virtgpu_ioctl.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/73ea38a89b923fa08047885a0845d1cd89261ead https://git.kernel.org/stable/c/eea473532a286cd1b13cddbec5c645989f43a3aa https://git.kernel.org/stable/c/88c60c06a2a5244f5dd32ec098e633add114890f https://git.kernel.org/stable/c/0455867bbd95ffa9d9db0a1c6dda500f8126232c https://git.kernel.org/stable/c/81c6769e069d703154087377d1749af2f1b74e49 https://git.kernel.org/stable/c/02df4e24dc4c0bf5b0425a6acabc5201d7f04fc2 https://git.kernel.org/stable/c/24b6d5c7641412c9ebef0d4c8b888d49a0e6b880