CVE-2026-80887: drm/vmwgfx: use check_add_overflow for shader size+offset bound

Published Sep 4, 2026
·
Updated

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.

Affected Software

1 affected component
Linux Kernel

Event History

Sep 4, 2026
CVE Published
via MITRE·05:11 PM
Data Sourced
via MITRE·05:11 PM
Description

Frequently Asked Questions

1

What input is required to trigger the faulty bounds check?

The shader offset must be user-controlled and near U64_MAX so that adding the supplied shader size causes an unsigned 64-bit wraparound. The wrapped, small result can then incorrectly pass the backing-buffer bounds check.

2

Which systems are relevant to triage?

The issue is relevant where the Linux kernel vmwgfx driver processes user-supplied shader definitions backed by a buffer. The affected path stores the unchecked offset and forwards it in host SVGA shader-create commands.

3

What does the available fix change?

The fix replaces the vulnerable size-plus-offset calculation with check_add_overflow(). It rejects overflow before comparing the computed endpoint with the backing buffer size.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203