HIGH
vmwgfx ExternalBoCopy OOB
CVE-2026-80700
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI7.8HIGH
01Description
In the Linux kernel, the following vulnerability has been resolved: drm/vmwgfx: validate external BO copy bounds for both stride paths vmw_external_bo_copy() trusts caller-supplied offsets, strides, and heights and operates on imported dma-buf vmaps: - The equal-stride memcpy() bound was clamped after subtracting the offsets from dst_size and src_size; an offset larger than the BO size wraps the unsigned subtraction to a huge value and the resulting memcpy() runs off the end of the vmap. dst_stride * height is also a u32 multiplication that can overflow. - The non-equal-stride row-by-row path had no bound at all. The loop touches bytes through offset + (height - 1) * stride + width_in_bytes, with only a WARN_ON(dst_stride < width_in_bytes), and could likewise step past the end of either mapping. The offsets and strides are derived from STDU/SOU plane state, so a configured CRTC submitting a crafted atomic commit on an imported framebuffer can reach this path. Validate the exact row-copy endpoint against each BO's size up front using check_mul_overflow() and check_add_overflow(). Use the bulk memcpy() path only when width_in_bytes covers the whole stride; otherwise copy one row at a time so partial-row updates near the bottom of a framebuffer remain valid. Also reject zero strides and stride < width_in_bytes, both of which the row-by-row path cannot represent safely.
02KernelScan AI Analysis
Risk summary
A local attacker with access to the vmwgfx DRM device can trigger an out-of-bounds heap write by submitting a crafted atomic commit with an imported dma-buf framebuffer whose offsets, strides, or heights exceed the backing buffer size. This can corrupt kernel heap memory, leading to privilege escalation or a kernel panic. The vulnerability is specific to systems running the VMware vmwgfx graphics driver, typically inside VMware virtual machines.
Vulnerability analysis
The vmwgfx driver's external buffer copy routine trusted caller-supplied offsets, strides, and heights without validating them against the actual size of the imported dma-buf mappings. An offset larger than the buffer caused an unsigned subtraction to wrap, making the subsequent bulk copy believe a huge copy was safe; a separate row-by-row path had no bounds check at all and could walk past the end of either mapping. Both paths also suffered from integer overflow in stride-times-height multiplication. The fix computes the exact last byte each copy would touch using overflow-safe arithmetic and rejects the operation if it exceeds either buffer's size, and it now requires strides to be at least as wide as the copy region. A local process that can open the vmwgfx DRM device and submit an atomic commit with a crafted imported framebuffer can reach this code path; no special kernel capabilities are required beyond access to the GPU device node.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.6 | 6.6.49 | 6.6.151 | 4e0f669e2951 |
| 6.12 | — | 6.12.103 | 042ca3877955 |
| mainline | — | 7.2 | — |
| 6.18 | — | 6.18.44 | 5e4a2d15637a |
| 7.1 | — | 7.1.8 | 706c93c5813c |
| 6.10 | 6.10.8 | 6.11 | e7b25a601178 |
| cip/6.12 | — | 6.12.104-cip30 | e7b25a601178 |