In the Linux kernel, the following vulnerability has been resolved:
drm/vmwgfx: use checkaddoverflow for shader size+offset bound
vmwshaderdefine() validates the user-supplied shader window against its backing buffer with
(u64)buffer->tbo.base.size < (u64)size + (u64)offset
drmvmwshadercreatearg::offset is _u64 in the uapi; when it is near U64MAX the unsigned addition wraps and the resulting tiny value passes the check. The unbounded offset is then stored in res->guestmemoryoffset and forwarded to host SVGA shader-create commands.
Use checkaddoverflow() to detect the wrap and compare the resulting endpoint against the buffer size.