drm/vmwgfx: Remove rcu locks from user resources
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/vmwgfx: Remove rcu locks from user resources
User resource lookups used rcu to avoid two extra atomics. Unfortunately the rcu paths were buggy and it was easy to make the driver crash by submitting command buffers from two different threads. Because the lookups never show up in performance profiles replace them with a regular spin lock which fixes the races in accesses to those shared resources.
Fixes kernel oops'es in IGT's vmwgfx execution_buffer stress test and seen crashes with apps using shared resources.
From the CVE record · Linux
The Linux kernel's vmwgfx driver has races in user resource lookups. Submitting command buffers from two threads can crash the driver, including when applications use shared resources. The input does not specify authentication requirements or whether other user interaction is needed.
Engineers running Linux kernels with the vmwgfx driver should check their kernel versions; affected versions are not specified.