KernelScan.io

HIGH Introduced in 5.11

virtio VramCreate UAF

CVE-2026-98606

CVSS 7.8 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

01

In the Linux kernel, the following vulnerability has been resolved: drm/virtio: release the GEM object on virtio_gpu_vram_create() errors virtio_gpu_vram_create() frees the object with a bare kfree(vram) on both error paths after drm_gem_private_object_init() has run, and on the second one after drm_gem_create_mmap_offset() has linked obj->vma_node into the device's VMA offset manager. The freed object stays in that interval tree, so a later lookup or insertion walks freed memory, and the dma_resv and gpuva lock are never destroyed. Call drm_gem_object_release() before kfree() on both paths.

02

Engine v0.9.0

Risk summary

A local attacker with access to a virtio GPU device (typically inside a VM guest) can trigger a use-after-free in the kernel by exhausting resource IDs, causing a VRAM object to be freed while still linked in the VMA offset manager's interval tree. This allows arbitrary kernel memory read/write and privilege escalation, and is exploitable from containers if the GPU device is passed through.

Affecteddrivers/gpu/drm/virtio/virtgpu_vram.c (drm/virtio)

Vulnerability analysis

The virtio_gpu_vram_create() function initializes a GEM object and links it into the device's VMA offset manager, but on two error paths — when creating the mmap offset fails or when allocating a resource ID fails — it frees the object with a bare kfree() without first releasing the GEM object. This leaves the freed object in the VMA interval tree, so subsequent lookups or insertions walk freed memory, and the dma_resv and gpuva locks are never destroyed. The fix adds a common error path that calls drm_gem_object_release() before kfree(), properly unlinking the object and destroying its locks. The bug is reachable by any local user with access to the virtio GPU DRM device (e.g., /dev/dri/renderD*), which is commonly available in virtualized environments and can be passed to containers.

03

BranchIntroducedFixed inPatch commit
5.155.115.15.222977c29340649
6.15.116.1.1895118b5fdf1eb
6.125.116.12.11203bdbf182082
6.185.116.18.555c2cb3dd1447
6.65.116.6.158a9bb8f8fd569
7.25.117.2.97c8deb77d05b
mainline5.117.3036d28db1818
cip/6.15.116.1.189-cip615118b5fdf1eb
cip/6.1-rt5.116.1.189-cip61-rt325118b5fdf1eb
cip/6.125.116.12.112-cip3303bdbf182082

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.112-cip33
cip/6.1Fixed in 6.1.189-cip61
cip/6.1-rtFixed in 6.1.189-cip61-rt32