drm/vmwgfx: validate external BO copy bounds for both stride paths
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.
CVE-2026-80700
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-80700
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "9a9716bbbf3dd6b6cbefba3abcc89af8b72631f4",
"lessThan": "4e0f669e2951b742239c6fe847fcc406fe78748d",
"versionType": "git"
},
{
"status": "affected",
"version": "50f1199250912568606b3778dc56646c10cb7b04",
"lessThan": "e7b25a6011781ebfdbc458552cae6d4156732771",
"versionType": "git"
},
{
"status": "affected",
"version": "50f1199250912568606b3778dc56646c10cb7b04",
"lessThan": "042ca38779554687fc32b66a28328e0d9a36c58f",
"versionType": "git"
},
{
"status": "affected",
"version": "50f1199250912568606b3778dc56646c10cb7b04",
"lessThan": "5e4a2d15637a906cbd9bc98e0bf969f5f713e344",
"versionType": "git"
},
{
"status": "affected",
"version": "50f1199250912568606b3778dc56646c10cb7b04",
"lessThan": "706c93c5813caabbb0d0a576c017d15aeec2c113",
"versionType": "git"
},
{
"status": "affected",
"version": "5c12391ee1ab59cb2f3be3f1f5e6d0fc0c2dc854",
"versionType": "git"
},
{
"status": "affected",
"version": "6.6.49",
"lessThan": "6.6.151",
"versionType": "semver"
},
{
"status": "affected",
"version": "6.10.8",
"lessThan": "6.11",
"versionType": "semver"
}
],
"programFiles": [
"drivers/gpu/drm/vmwgfx/vmwgfx_blit.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.11"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.11",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.6.151",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.103",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.44",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.1.8",
"versionType": "semver",
"lessThanOrEqual": "7.1.*"
},
{
"status": "unaffected",
"version": "7.2",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/gpu/drm/vmwgfx/vmwgfx_blit.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-80700
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #34359 · Revision 1
- Added to Heist Feed
- Publisher date