drm/virtio: Fix GEM handle creation UAF
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 · < 52531258318ed59a2dc5a43df2eaf0eb1d65438e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/virtio: Fix GEM handle creation UAF
Userspace can guess the handle value and try to race GEM object creation with handle close, resulting in a use-after-free if we dereference the object after dropping the handle's reference. For that reason, dropping the handle's reference must be done *after* we are done dereferencing the object.
From the CVE record · Linux
The Linux kernel’s drm/virtio GEM handle creation is vulnerable to a use-after-free. A local userspace attacker can guess a handle value and race GEM object creation against handle closure, potentially causing the kernel to dereference an object after its reference is dropped.
Anyone running a Linux kernel with drm/virtio should check whether their kernel is affected; affected versions were not provided.