drm/vmwgfx: drop dma_buf reference on foreign-fd prime import
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel f739416dc555fa205a785e5135d73fa39b26f35d, Kernel 1715901e7052cf90fbf04c8303e563a47e021278, Kernel 4df39eb99bb47d1f24d1952c23b21b10988356bf and 12 more.
In the Linux kernel, the following vulnerability has been resolved: drm/vmwgfx: drop dma_buf reference on foreign-fd prime import ttm_prime_fd_to_handle() returns -ENOSYS when the imported fd's dma_buf->ops do not match the ttm_object_device's ops, but does so without releasing the reference acquired by dma_buf_get(). Any unprivileged renderD client passing a non-vmwgfx prime fd through the DRM_VMW_GB_SURFACE_REF{,_EXT} path leaks one dma_buf reference per call and indefinitely pins the foreign exporter's GEM resources. Funnel the error path through the existing dma_buf_put() so the reference is always dropped.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=65981f7681abdf92b25942222b629b9c512d0705 <f739416dc555fa205a785e5135d73fa39b26f35d, >=65981f7681abdf92b25942222b629b9c512d0705 <1715901e7052cf90fbf04c8303e563a47e021278, >=65981f7681abdf92b25942222b629b9c512d0705 <4df39eb99bb47d1f24d1952c23b21b10988356bf, >=65981f7681abdf92b25942222b629b9c512d0705 <619c3cfa88e09603a13d918f754808db2dda7057, >=65981f7681abdf92b25942222b629b9c512d0705 <a1e972fa94c3a8069e022c67b9d97c7aa7b05293, >=65981f7681abdf92b25942222b629b9c512d0705 <a8434b145b1e467940334c58c00af241e9494c5f, >=65981f7681abdf92b25942222b629b9c512d0705 <c1c22fca0a0896a452a7cb92422d67babd65b4be, >=65981f7681abdf92b25942222b629b9c512d0705 <c4fd91ee7228f56fbb4cf528757dc17ffefeb0ee, =3.13 | f739416dc555fa205a785e5135d73fa39b26f35d, 1715901e7052cf90fbf04c8303e563a47e021278, 4df39eb99bb47d1f24d1952c23b21b10988356bf, 619c3cfa88e09603a13d918f754808db2dda7057, a1e972fa94c3a8069e022c67b9d97c7aa7b05293, a8434b145b1e467940334c58c00af241e9494c5f, c1c22fca0a0896a452a7cb92422d67babd65b4be, c4fd91ee7228f56fbb4cf528757dc17ffefeb0ee |
| linux-kernel: Kernel | >=5.11.0 <5.15.221, >=5.16.0 <6.1.183, >=6.13.0 <6.18.44, >=6.19.0 <7.1.8, >=6.2.0 <6.6.151, >=6.7.0 <6.12.103, >=3.13.0 <5.10.270 | 5.15.221, 6.1.183, 6.18.44, 7.1.8, 6.6.151, 6.12.103, 5.10.270 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket