# CVE-2025-40277: drm/vmwgfx: Validate command header size against SVGA\_CMD\_MAX\_DATASIZE

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 9, 2026-11-26)
- **Published:** 2025-12-06T21:51:00.437Z
- **Modified:** 2026-10-15T19:10:00.173Z

## Who should check

- Anyone running Linux \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< e58559845021c3bad5e094219378b869157fad53; \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< 54d458b244893e47bda52ec3943fdfbc8d7d068b; \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< 709e5c088f9c99a5cf2c1d1c6ce58f2cca7ab173; \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< a3abb54c27b2c393c44362399777ad2f6e1ff17e; \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< b5df9e06eed3df6a4f5c6f8453013b0cabb927b4; \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< 5aea2cde03d4247cdcf53f9ab7d0747c9dca1cfc; \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< f3f3a8eb3f0ba799fae057091d8c67cca12d6fa0; \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< 32b415a9dc2c212e809b7ebc2b14bc3fbda2b9af
- Anyone running Linux 4.3

## 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.

## Affected and fixed versions

- Linux: \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< e58559845021c3bad5e094219378b869157fad53; \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< 54d458b244893e47bda52ec3943fdfbc8d7d068b; \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< 709e5c088f9c99a5cf2c1d1c6ce58f2cca7ab173; \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< a3abb54c27b2c393c44362399777ad2f6e1ff17e; \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< b5df9e06eed3df6a4f5c6f8453013b0cabb927b4; \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< 5aea2cde03d4247cdcf53f9ab7d0747c9dca1cfc; \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< f3f3a8eb3f0ba799fae057091d8c67cca12d6fa0; \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< 32b415a9dc2c212e809b7ebc2b14bc3fbda2b9af (cvelist)
- Linux: 4.3 (cvelist)

## Mitigation

- Upgrade Linux to 32b415a9dc2c212e809b7ebc2b14bc3fbda2b9af or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40277. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40277.md
Affected: Linux >= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, < e58559845021c3bad5e094219378b869157fad53; >= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, < 54d458b244893e47bda52ec3943fdfbc8d7d068b; >= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, < 709e5c088f9c99a5cf2c1d1c6ce58f2cca7ab173; >= 8ce75f8ab9044fe11caaaf2…
Fixed in: Linux 54d458b244893e47bda52ec3943fdfbc8d7d068b, Linux 709e5c088f9c99a5cf2c1d1c6ce58f2cca7ab173, Linux 5aea2cde03d4247cdcf53f9ab7d0747c9dca1cfc, Linux 32b415a9dc2c212e809b7ebc2b14bc3fbda2b9af

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40277 being exploited?

There is no confirmed exploitation: CVE-2025-40277 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40277?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-40277?

Linux \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< e58559845021c3bad5e094219378b869157fad53; \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< 54d458b244893e47bda52ec3943fdfbc8d7d068b; \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< 709e5c088f9c99a5cf2c1d1c6ce58f2cca7ab173; \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< a3abb54c27b2c393c44362399777ad2f6e1ff17e; \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< b5df9e06eed3df6a4f5c6f8453013b0cabb927b4; \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< 5aea2cde03d4247cdcf53f9ab7d0747c9dca1cfc; \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< f3f3a8eb3f0ba799fae057091d8c67cca12d6fa0; \>= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, \< 32b415a9dc2c212e809b7ebc2b14bc3fbda2b9af; Linux 4.3.

### Is there a fix for CVE-2025-40277?

Yes. Fixed in Linux 54d458b244893e47bda52ec3943fdfbc8d7d068b, Linux 709e5c088f9c99a5cf2c1d1c6ce58f2cca7ab173, Linux 5aea2cde03d4247cdcf53f9ab7d0747c9dca1cfc, Linux 32b415a9dc2c212e809b7ebc2b14bc3fbda2b9af. Upgrade Linux to 32b415a9dc2c212e809b7ebc2b14bc3fbda2b9af or later.

### How do I check if I'm affected by CVE-2025-40277?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/e58559845021c3bad5e094219378b869157fad53>
- other: <https://git.kernel.org/stable/c/54d458b244893e47bda52ec3943fdfbc8d7d068b>
- other: <https://git.kernel.org/stable/c/709e5c088f9c99a5cf2c1d1c6ce58f2cca7ab173>
- other: <https://git.kernel.org/stable/c/a3abb54c27b2c393c44362399777ad2f6e1ff17e>
- other: <https://git.kernel.org/stable/c/b5df9e06eed3df6a4f5c6f8453013b0cabb927b4>
- other: <https://git.kernel.org/stable/c/5aea2cde03d4247cdcf53f9ab7d0747c9dca1cfc>
- other: <https://git.kernel.org/stable/c/f3f3a8eb3f0ba799fae057091d8c67cca12d6fa0>
- other: <https://git.kernel.org/stable/c/32b415a9dc2c212e809b7ebc2b14bc3fbda2b9af>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40277>

HTML: <https://flawdb.com/CVE-2025-40277> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40277>
