Linux
drm/vmwgfx: bound DMA command body size against suffix pointer
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4e4ddd47774313accc86b233d6ca2c6a9037a671, < eb20f418933bea53375843b27b4022c1810be63b
- >= 4e4ddd47774313accc86b233d6ca2c6a9037a671, < fcd1e56e7816b31a1050ccc67df722b20f6bb15d
- >= 4e4ddd47774313accc86b233d6ca2c6a9037a671, < a4a37080a5ac777b59306cfcdf854cc05d7604d4
- >= 4e4ddd47774313accc86b233d6ca2c6a9037a671, < 036e16ada95389bdc30f41068af04c1d0872fad0
- >= 4e4ddd47774313accc86b233d6ca2c6a9037a671, < d5d7ada4e1296b00d89fe82b2ca850cc7809d6f7
- >= 4e4ddd47774313accc86b233d6ca2c6a9037a671, < 7e40e6120fb232a10b543ffd994e5c6d8f3a2cc6
- >= 4e4ddd47774313accc86b233d6ca2c6a9037a671, < 9759da60e38d7b9db44dc92713e4e0391883d221
- >= 4e4ddd47774313accc86b233d6ca2c6a9037a671, < f4f1db96bfd68b81053693ba53405b6f510ac16c
Fixed in eb20f418933bea53375843b27b4022c1810be63b, fcd1e56e7816b31a1050ccc67df722b20f6bb15d, a4a37080a5ac777b59306cfcdf854cc05d7604d4, 036e16ada95389bdc30f41068af04c1d0872fad0, d5d7ada4e1296b00d89fe82b2ca850cc7809d6f7, 7e40e6120fb232a10b543ffd994e5c6d8f3a2cc6, 9759da60e38d7b9db44dc92713e4e0391883d221, f4f1db96bfd68b81053693ba53405b6f510ac16c
- 2.6.33
Fixed in 0, 5.10.265, 5.15.216, 6.1.183, 6.6.151, 6.12.103, 6.18.44, 7.1.8, 7.2
Mitigation
Upgrade Linux to eb20f418933bea53375843b27b4022c1810be63b or fcd1e56e7816b31a1050ccc67df722b20f6bb15d or a4a37080a5ac777b59306cfcdf854cc05d7604d4 or 036e16ada95389bdc30f41068af04c1d0872fad0 or d5d7ada4e1296b00d89fe82b2ca850cc7809d6f7 or 7e40e6120fb232a10b543ffd994e5c6d8f3a2cc6 or 9759da60e38d7b9db44dc92713e4e0391883d221 or f4f1db96bfd68b81053693ba53405b6f510ac16c or later.
Upgrade Linux to 0 or 5.10.265 or 5.15.216 or 6.1.183 or 6.6.151 or 6.12.103 or 6.18.44 or 7.1.8 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.