CyberRota Analysis
AI-GeneratedThe vulnerability in the Linux kernel affects the vmwgfx driver, specifically in the handling of DMA command bodies where the size of the header is not properly validated against the suffix pointer. This oversight can lead to a TOCTOU condition, allowing one command to overwrite critical fields of another command in the device-visible command stream, potentially compromising system integrity. Organizations utilizing affected Linux systems, particularly those relying on the vmwgfx driver for graphics virtualization, should prioritize addressing this issue to mitigate the risk of unauthorized command manipulation.
Original NVD Description
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.