HIGH Introduced in 5.11
virtio VramCreate UAF
CVE-2026-98606
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
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.
02KernelScan AI Analysis
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.
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.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.15 | 5.11 | 5.15.222 | 977c29340649 |
| 6.1 | 5.11 | 6.1.189 | 5118b5fdf1eb |
| 6.12 | 5.11 | 6.12.112 | 03bdbf182082 |
| 6.18 | 5.11 | 6.18.55 | 5c2cb3dd1447 |
| 6.6 | 5.11 | 6.6.158 | a9bb8f8fd569 |
| 7.2 | 5.11 | 7.2.9 | 7c8deb77d05b |
| mainline | 5.11 | 7.3 | 036d28db1818 |
| cip/6.1 | 5.11 | 6.1.189-cip61 | 5118b5fdf1eb |
| cip/6.1-rt | 5.11 | 6.1.189-cip61-rt32 | 5118b5fdf1eb |
| cip/6.12 | 5.11 | 6.12.112-cip33 | 03bdbf182082 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |