---
id: CVE-2025-40277
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  drm/vmwgfx: Validate command header size against SVGA_CMD_MAX_DATASIZE

  This data originates from userspace and is used in buffer offset
  calculations which could potent…
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  drm/vmwgfx: Validate command header size against SVGA_CMD_MAX_DATASIZE

  This data originates from userspace and is used in buffer offset
  calculations which could potent…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
published: '2025-12-06'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T19:10:00.173'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-40277'
references:
  - url: 'https://git.kernel.org/stable/c/32b415a9dc2c212e809b7ebc2b14bc3fbda2b9af'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/54d458b244893e47bda52ec3943fdfbc8d7d068b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/5aea2cde03d4247cdcf53f9ab7d0747c9dca1cfc'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/709e5c088f9c99a5cf2c1d1c6ce58f2cca7ab173'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/a3abb54c27b2c393c44362399777ad2f6e1ff17e'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/b5df9e06eed3df6a4f5c6f8453013b0cabb927b4'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/e58559845021c3bad5e094219378b869157fad53'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/f3f3a8eb3f0ba799fae057091d8c67cca12d6fa0'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
epss: 0.00237
epssPercentile: 0.13667
ingestedAt: '2026-10-15T19:25:46.332Z'
---

## Overview

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

drm/vmwgfx: Validate command header size against SVGA_CMD_MAX_DATASIZE

This data originates from userspace and is used in buffer offset
calculations which could potentially overflow causing an out-of-bounds
access.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
