drm/vmwgfx: bound DMA command body size against suffix pointer
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel fcd1e56e7816b31a1050ccc67df722b20f6bb15d, Kernel 036e16ada95389bdc30f41068af04c1d0872fad0, Kernel 7e40e6120fb232a10b543ffd994e5c6d8f3a2cc6 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: drm/vmwgfx: bound DMA command body size against suffix pointer vmw_cmd_dma() locates the DMA suffix at (unsigned long) &cmd->body + header->size - sizeof(*suffix) without checking that header->size is large enough to contain both cmd->body and the suffix. An undersized header makes the suffix pointer underflow back into the previous command in the bounce buffer. The verifier later writes suffix->maximumOffset, clobbering verified fields of an already-relocated earlier command -- a TOCTOU on the device-visible command stream that lets one command rewrite another's GMR id, surface id, or other authenticated fields. Reject the command if the body is too small for the suffix to fit.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=4e4ddd47774313accc86b233d6ca2c6a9037a671 <fcd1e56e7816b31a1050ccc67df722b20f6bb15d, >=4e4ddd47774313accc86b233d6ca2c6a9037a671 <036e16ada95389bdc30f41068af04c1d0872fad0, >=4e4ddd47774313accc86b233d6ca2c6a9037a671 <7e40e6120fb232a10b543ffd994e5c6d8f3a2cc6, >=4e4ddd47774313accc86b233d6ca2c6a9037a671 <9759da60e38d7b9db44dc92713e4e0391883d221, >=4e4ddd47774313accc86b233d6ca2c6a9037a671 <a4a37080a5ac777b59306cfcdf854cc05d7604d4, >=4e4ddd47774313accc86b233d6ca2c6a9037a671 <d5d7ada4e1296b00d89fe82b2ca850cc7809d6f7, >=4e4ddd47774313accc86b233d6ca2c6a9037a671 <eb20f418933bea53375843b27b4022c1810be63b, >=4e4ddd47774313accc86b233d6ca2c6a9037a671 <f4f1db96bfd68b81053693ba53405b6f510ac16c, =2.6.33 | fcd1e56e7816b31a1050ccc67df722b20f6bb15d, 036e16ada95389bdc30f41068af04c1d0872fad0, 7e40e6120fb232a10b543ffd994e5c6d8f3a2cc6, 9759da60e38d7b9db44dc92713e4e0391883d221, a4a37080a5ac777b59306cfcdf854cc05d7604d4, d5d7ada4e1296b00d89fe82b2ca850cc7809d6f7, eb20f418933bea53375843b27b4022c1810be63b, f4f1db96bfd68b81053693ba53405b6f510ac16c |
| linux-kernel: Kernel | >=5.11.0 <5.15.216, >=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, >=2.6.33 <5.10.265 | 5.15.216, 6.1.183, 6.18.44, 7.1.8, 6.6.151, 6.12.103, 5.10.265 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket