CVE-2025-40277
drm/vmwgfx: Validate command header size against SVGA_CMD_MAX_DATASIZE
Mitigation
- Upgrade Linux to 32b415a9dc2c212e809b7ebc2b14bc3fbda2b9af or later.
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
Vulnerability facts
- Affected
- Linux >= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, < e58559845021c3bad5e094219378b869157fad53; >= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, < 54d458b244893e47bda52ec3943fdfbc8d7d068b; >= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, < 709e5c088f9c99a5cf2c1d1c6ce58f2cca7ab173; >= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, < a3abb54c27b2c393c44362399777ad2f6e1ff17e; >= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, < b5df9e06eed3df6a4f5c6f8453013b0cabb927b4; >= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, < 5aea2cde03d4247cdcf53f9ab7d0747c9dca1cfc; >= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, < f3f3a8eb3f0ba799fae057091d8c67cca12d6fa0; >= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, < 32b415a9dc2c212e809b7ebc2b14bc3fbda2b9af; Linux 4.3
- Fixed in
- Linux 54d458b244893e47bda52ec3943fdfbc8d7d068b, Linux 709e5c088f9c99a5cf2c1d1c6ce58f2cca7ab173, Linux 5aea2cde03d4247cdcf53f9ab7d0747c9dca1cfc, Linux 32b415a9dc2c212e809b7ebc2b14bc3fbda2b9af
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.23% chance of exploitation in 30 days (percentile 9, 2026-11-26)
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, < e58559845021c3bad5e094219378b869157fad53; >= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, < 54d458b244893e47bda52ec3943fdfbc8d7d068b; >= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, < 709e5c088f9c99a5cf2c1d1c6ce58f2cca7ab173; >= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, < a3abb54c27b2c393c44362399777ad2f6e1ff17e; >= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, < b5df9e06eed3df6a4f5c6f8453013b0cabb927b4; >= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, < 5aea2cde03d4247cdcf53f9ab7d0747c9dca1cfc; >= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, < f3f3a8eb3f0ba799fae057091d8c67cca12d6fa0; >= 8ce75f8ab9044fe11caaaf2b2c82471023212f9f, < 32b415a9dc2c212e809b7ebc2b14bc3fbda2b9af | — | cvelist |
| Linux | 4.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Other
- https://git.kernel.org/stable/c/e58559845021c3bad5e094219378b869157fad53
- https://git.kernel.org/stable/c/54d458b244893e47bda52ec3943fdfbc8d7d068b
- https://git.kernel.org/stable/c/709e5c088f9c99a5cf2c1d1c6ce58f2cca7ab173
- https://git.kernel.org/stable/c/a3abb54c27b2c393c44362399777ad2f6e1ff17e
- https://git.kernel.org/stable/c/b5df9e06eed3df6a4f5c6f8453013b0cabb927b4
- https://git.kernel.org/stable/c/5aea2cde03d4247cdcf53f9ab7d0747c9dca1cfc
- https://git.kernel.org/stable/c/f3f3a8eb3f0ba799fae057091d8c67cca12d6fa0
- https://git.kernel.org/stable/c/32b415a9dc2c212e809b7ebc2b14bc3fbda2b9af
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.