CVE-2025-40277 drm/vmwgfx: Validate command header size against SVGA_CMD_MAX_DATASIZE

High 7.8 Published Updated

A local attacker can trigger an integer overflow in the vmwgfx driver, leading to out-of-bounds memory access and potential code execution or system crash.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-40277?

CVE-2025-40277 is a high-severity vulnerability in Linux, published on 6 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Which versions are affected by CVE-2025-40277?

How do I fix CVE-2025-40277?

Apply the vendor's patch.

Is CVE-2025-40277 being exploited?

There is no known exploitation of CVE-2025-40277 in the wild and no public exploit code.

Sources

Also known as BELL-CVE-2025-40277, DEBIAN-CVE-2025-40277, GHSA-6jjc-g279-fq4c, ROOT-OS-DEBIAN-12-CVE-2025-40277, ROOT-OS-DEBIAN-13-CVE-2025-40277, ROOT-OS-UBUNTU-2204-CVE-2025-40277 and 2 more.

Is CVE-2025-40277 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free