CVE-2026-80887

drm/vmwgfx: use check_add_overflow for shader size+offset bound

State
Published
Severity
Not scored
Published
Sep 4, 2026
Updated
Sep 4, 2026
Reserved
Aug 26, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

drm/vmwgfx: use check_add_overflow for shader size+offset bound

vmw_shader_define() validates the user-supplied shader window against its backing buffer with

(u64)buffer->tbo.base.size < (u64)size + (u64)offset

drm_vmw_shader_create_arg::offset is __u64 in the uapi; when it is near U64_MAX the unsigned addition wraps and the resulting tiny value passes the check. The unbounded offset is then stored in res->guest_memory_offset and forwarded to host SVGA shader-create commands.

Use check_add_overflow() to detect the wrap and compare the resulting endpoint against the buffer size.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 668b206601c5f5063e03b76784a0d3024fa2b249 to before 1bbe7751f5ebac383405ef29a66622d65bd505d3Affected
  • 668b206601c5f5063e03b76784a0d3024fa2b249 to before d3f44438aa805270aaead3b6840ccaea0f4c11f9Affected
  • 668b206601c5f5063e03b76784a0d3024fa2b249 to before cfd163169af3be56eaef113c680ea251f0d09189Affected
  • 668b206601c5f5063e03b76784a0d3024fa2b249 to before 5c725901908eb1e52a16fc0e2373cb761df42d21Affected
  • 668b206601c5f5063e03b76784a0d3024fa2b249 to before 54d56d5b42d2e4c72ba6e365e9774da90698aa22Affected
LinuxLinux
  • 6.4Affected
  • before 6.4Not affected
  • 6.6.151 through 6.6.*Not affected
  • 6.12.103 through 6.12.*Not affected
  • 6.18.44 through 6.18.*Not affected
  • 7.1.8 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.