CVE-2025-40277
published high CVSS 3.1 · 7.8drm/vmwgfx: Validate command header size against SVGA_CMD_MAX_DATASIZE
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux8ce75f8ab9044fe11caaaf2b2c82471023212f9f to < e58559845021c3bad5e094219378b869157fad53 · 8ce75f8ab9044fe11caaaf2b2c82471023212f9f to < 54d458b244893e47bda52ec3943fdfbc8d7d068b · 8ce75f8ab9044fe11caaaf2b2c82471023212f9f to < 709e5c088f9c99a5cf2c1d1c6ce58f2cca7ab173 · 8ce75f8ab9044fe11caaaf2b2c82471023212f9f to < a3abb54c27b2c393c44362399777ad2f6e1ff17e · 8ce75f8ab9044fe11caaaf2b2c82471023212f9f to < b5df9e06eed3df6a4f5c6f8453013b0cabb927b4 · 8ce75f8ab9044fe11caaaf2b2c82471023212f9f to < 5aea2cde03d4247cdcf53f9ab7d0747c9dca1cfc · 8ce75f8ab9044fe11caaaf2b2c82471023212f9f to < f3f3a8eb3f0ba799fae057091d8c67cca12d6fa0 · 8ce75f8ab9044fe11caaaf2b2c82471023212f9f to < 32b415a9dc2c212e809b7ebc2b14bc3fbda2b9af · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.3 (affected) · 0 to < 4.3 (unaffected · semver) · 5.4.302 through 5.4.* (unaffected · semver) · 5.10.247 through 5.10.* (unaffected · semver) · 5.15.197 through 5.15.* (unaffected · semver) · 6.1.159 through 6.1.* (unaffected · semver) · 6.6.117 through 6.6.* (unaffected · semver) · 6.12.59 through 6.12.* (unaffected · semver) · 6.17.9 through 6.17.* (unaffected · semver) · 6.18 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1350 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1430 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | kernel-abi-stablelists | Advisory build | 6.12.0-124.27.1.el10_1 | ALSA-2026:0453 |
| AlmaLinux | 10 | kernel-doc | Advisory build | 6.12.0-124.27.1.el10_1 | ALSA-2026:0453 |
| AlmaLinux | 8 | bpftool | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | kernel | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | kernel-abi-stablelists | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | kernel-core | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | kernel-cross-headers | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | kernel-debug | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | kernel-debug-core | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | kernel-debug-devel | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | kernel-debug-modules | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | kernel-debug-modules-extra | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | kernel-devel | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | kernel-doc | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | kernel-headers | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | kernel-modules | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | kernel-modules-extra | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | kernel-rt | Advisory build | 4.18.0-553.97.1.rt7.438.el8_10 | ALSA-2026:1148 |
| AlmaLinux | 8 | kernel-rt-core | Advisory build | 4.18.0-553.97.1.rt7.438.el8_10 | ALSA-2026:1148 |
| AlmaLinux | 8 | kernel-rt-debug | Advisory build | 4.18.0-553.97.1.rt7.438.el8_10 | ALSA-2026:1148 |
| AlmaLinux | 8 | kernel-rt-debug-core | Advisory build | 4.18.0-553.97.1.rt7.438.el8_10 | ALSA-2026:1148 |
| AlmaLinux | 8 | kernel-rt-debug-devel | Advisory build | 4.18.0-553.97.1.rt7.438.el8_10 | ALSA-2026:1148 |
| AlmaLinux | 8 | kernel-rt-debug-modules | Advisory build | 4.18.0-553.97.1.rt7.438.el8_10 | ALSA-2026:1148 |
| AlmaLinux | 8 | kernel-rt-debug-modules-extra | Advisory build | 4.18.0-553.97.1.rt7.438.el8_10 | ALSA-2026:1148 |
| AlmaLinux | 8 | kernel-rt-devel | Advisory build | 4.18.0-553.97.1.rt7.438.el8_10 | ALSA-2026:1148 |
| AlmaLinux | 8 | kernel-rt-modules | Advisory build | 4.18.0-553.97.1.rt7.438.el8_10 | ALSA-2026:1148 |
| AlmaLinux | 8 | kernel-rt-modules-extra | Advisory build | 4.18.0-553.97.1.rt7.438.el8_10 | ALSA-2026:1148 |
| AlmaLinux | 8 | kernel-tools | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | kernel-tools-libs | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | kernel-tools-libs-devel | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | kernel-zfcpdump | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | kernel-zfcpdump-core | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | kernel-zfcpdump-devel | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | kernel-zfcpdump-modules | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | kernel-zfcpdump-modules-extra | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | perf | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 8 | python3-perf | Advisory build | 4.18.0-553.97.1.el8_10 | ALSA-2026:1142 |
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-64k | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-64k-core | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-64k-debug | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-64k-debug-core | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-64k-debug-devel | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-64k-debug-devel-matched | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-64k-debug-modules | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-64k-debug-modules-core | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-64k-debug-modules-extra | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-64k-devel | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-64k-devel-matched | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-64k-modules | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-64k-modules-core | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-64k-modules-extra | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-debug-modules-core | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-debug-uki-virt | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-devel | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-devel-matched | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-doc | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-headers | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-modules | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-modules-core | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-modules-extra | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-64k | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-64k-core | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-64k-debug | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-64k-debug-core | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-64k-debug-devel | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules-core | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules-extra | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-64k-devel | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-64k-modules | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-64k-modules-core | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-64k-modules-extra | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-core | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-debug | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-debug-core | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-debug-devel | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-debug-modules | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-debug-modules-core | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-debug-modules-extra | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-devel | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-modules | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-modules-core | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-rt-modules-extra | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-tools | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-tools-libs | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-tools-libs-devel | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-uki-virt | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-uki-virt-addons | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
| AlmaLinux | 9 | kernel-zfcpdump | Advisory build | 5.14.0-611.24.1.el9_7 | ALSA-2026:0793 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bug is reached only through the DRM_IOCTL_VMW_EXECBUF ioctl on the local vmwgfx device/render node (/dev/dri/renderD*), requiring local system access. There is no network or remote path into the command verifier. AC:L - The attacker fully and deterministically controls header->size in the command stream they submit; setting it to 0xFFFFFFF8..0xFFFFFFFF reliably wraps the 32-bit size computation and bypasses the size_remaining check every time. No race, timing window, or uncontrollable precondition is involved. PR:L - VMW_EXECBUF is declared DRM_RENDER_ALLOW and vmwgfx sets DRIVER_RENDER, so no DRM master or authentication is needed — any unprivileged local user with access to the render node (standard for graphics/desktop users and containers in VMware guests) can submit commands. UI:N - The attacker triggers the flaw entirely on their own by issuing the execbuf ioctl with a crafted SVGA3D command header. No victim action or interaction is required. S:U - The integer overflow and the resulting out-of-bounds accesses occur within the guest kernel's own address space and are confined to the kernel's security authority. No hypervisor, IOMMU, or sandbox boundary is crossed by the kernel-side defect itself. C:H - The unchecked header->size drives pointer arithmetic in vmw_cmd_dma(), vmw_cmd_draw(), and vmw_cmd_tex_state(), producing large out-of-bounds reads of adjacent kernel memory whose contents are interpreted as resource handles; success/failure of vmw_user_resource_lookup_handle() forms a scanning oracle over kernel heap contents, so arbitrary kernel memory disclosure is achievable. I:H - The same overflow yields out-of-bounds writes — vmw_cmd_dma() writes bo_size into suffix->maximumOffset past the buffer, and OOB-derived relocation offsets cause vmw_resource_relocations_apply() to write 32-bit resource IDs outside the command buffer. Controlled heap corruption of this kind is a standard path to privilege escalation. A:H - A header->size of 0xFFFFFFF8 makes *size zero, causing vmw_cmd_check_all() to spin forever while holding dev_priv->cmdbuf_mutex, and the far out-of-bounds reads past a vmalloc'd bounce buffer hit a guard page and oops the kernel. Either outcome is a full denial of service.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 8ce75f8ab9044fe11caaaf2b2c82471023212f9f to < e58559845021c3bad5e094219378b869157fad53 (affected · git)8ce75f8ab9044fe11caaaf2b2c82471023212f9f to < 54d458b244893e47bda52ec3943fdfbc8d7d068b (affected · git)8ce75f8ab9044fe11caaaf2b2c82471023212f9f to < 709e5c088f9c99a5cf2c1d1c6ce58f2cca7ab173 (affected · git)8ce75f8ab9044fe11caaaf2b2c82471023212f9f to < a3abb54c27b2c393c44362399777ad2f6e1ff17e (affected · git)8ce75f8ab9044fe11caaaf2b2c82471023212f9f to < b5df9e06eed3df6a4f5c6f8453013b0cabb927b4 (affected · git)8ce75f8ab9044fe11caaaf2b2c82471023212f9f to < 5aea2cde03d4247cdcf53f9ab7d0747c9dca1cfc (affected · git)8ce75f8ab9044fe11caaaf2b2c82471023212f9f to < f3f3a8eb3f0ba799fae057091d8c67cca12d6fa0 (affected · git)8ce75f8ab9044fe11caaaf2b2c82471023212f9f to < 32b415a9dc2c212e809b7ebc2b14bc3fbda2b9af (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.3 (affected)0 to < 4.3 (unaffected · semver)5.4.302 through 5.4.* (unaffected · semver)5.10.247 through 5.10.* (unaffected · semver)5.15.197 through 5.15.* (unaffected · semver)6.1.159 through 6.1.* (unaffected · semver)6.6.117 through 6.6.* (unaffected · semver)6.12.59 through 6.12.* (unaffected · semver)6.17.9 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/32b415a9dc2c212e809b7ebc2b14bc3fbda2b9af
- https://git.kernel.org/stable/c/54d458b244893e47bda52ec3943fdfbc8d7d068b
- https://git.kernel.org/stable/c/5aea2cde03d4247cdcf53f9ab7d0747c9dca1cfc
- 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/e58559845021c3bad5e094219378b869157fad53
- https://git.kernel.org/stable/c/f3f3a8eb3f0ba799fae057091d8c67cca12d6fa0
Provider assertions
2Linux · cna
drm/vmwgfx: Validate command header size against SVGA_CMD_MAX_DATASIZE
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 32e6be1f6c6cae4e9c5b5262bf6e21baa8c7f9173f865dc88ca31564c89e38a5
- Ingested
- 23 Sep 2026, 08:48:04 UTC
- Source record
- Official CVE record