Skip to contentSkip to conversation

CVE-2026-98608: drm/virtio: fix object leak in virtio_gpu_resource_create_ioctl()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

drm/virtio: fix object leak in virtio_gpu_resource_create_ioctl()

virtio_gpu_resource_create_ioctl() calls drm_gem_object_release() on the drm_gem_handle_create() error path instead of dropping the reference it owns, so obj->funcs->free() never runs and the virtio_gpu_object, its pages and sg table, 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-98608 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.4 with commit 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 and fixed in 5.10.271 with commit d33d5ef8225538f76e4598c09e2074834667bb8d
	Issue introduced in 4.4 with commit 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 and fixed in 5.15.222 with commit 1586ee6107acab3b14510ac6af939f1253269df8
	Issue introduced in 4.4 with commit 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 and fixed in 6.1.189 with commit 83c899104496677068fbbd2e42f28fd625f9cd85
	Issue introduced in 4.4 with commit 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 and fixed in 6.6.158 with commit 77dee8e9106d62bf4f51b646c801f51f8ee77339
	Issue introduced in 4.4 with commit 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 and fixed in 6.12.112 with commit 574ae9fa5fd3658bee23cb544fe5a0d1d750016a
	Issue introduced in 4.4 with commit 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 and fixed in 6.18.55 with commit b516446a25bf365cfffe3d7884ea6637f7f70862
	Issue introduced in 4.4 with commit 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 and fixed in 7.2.9 with commit 749d8bb964b3414ef967d5ec80f2f1b5b3a510d9
	Issue introduced in 4.4 with commit 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 and fixed in 7.3-rc5 with commit 477bc3068fc3777b9d8ffd79e265b0dfdf2d3a6b

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-98608

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/d33d5ef8225538f76e4598c09e2074834667bb8d
	https://git.kernel.org/stable/c/1586ee6107acab3b14510ac6af939f1253269df8
	https://git.kernel.org/stable/c/83c899104496677068fbbd2e42f28fd625f9cd85
	https://git.kernel.org/stable/c/77dee8e9106d62bf4f51b646c801f51f8ee77339
	https://git.kernel.org/stable/c/574ae9fa5fd3658bee23cb544fe5a0d1d750016a
	https://git.kernel.org/stable/c/b516446a25bf365cfffe3d7884ea6637f7f70862
	https://git.kernel.org/stable/c/749d8bb964b3414ef967d5ec80f2f1b5b3a510d9
	https://git.kernel.org/stable/c/477bc3068fc3777b9d8ffd79e265b0dfdf2d3a6b