drm/virtio: fix object leak in virtio_gpu_resource_create_ioctl()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 · < b516446a25bf365cfffe3d7884ea6637f7f70862| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s virtio GPU resource creation ioctl leaks an object and associated resources when DRM GEM handle creation fails. The affected error path releases the object without dropping its reference, so its cleanup function never runs. The input does not specify attacker access requirements or user interaction.
Engineers running Linux kernels with the virtio GPU driver should check their kernel versions; affected versions are not specified.