
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-40277 is a local privilege escalation vulnerability in the Linux kernel's drm/vmwgfx graphics driver, specifically within the vmw_cmd_check function. The flaw stems from insufficient validation of command header size against SVGA_CMD_MAX_DATASIZE, where userspace-supplied data used in buffer offset calculations can trigger an integer overflow before a memory write, potentially enabling out-of-bounds access. It affects Linux kernel versions from 4.3 up to (but not including) the patched stable releases across multiple long-term support branches, and impacts distributions including Red Hat Enterprise Linux, Ubuntu, SUSE, Debian, and downstream products such as IBM Netezza Appliance and Microsoft Azure Linux 3. The vulnerability was published on December 6, 2025, with a CVSS v3.1 base score of 7.8 (High) (Red Hat CVE, ZDI Advisory).
The root cause is an integer overflow (CWE-190) in the vmw_cmd_check function of the drm/vmwgfx kernel driver, which processes SVGA command buffers submitted from userspace. The driver fails to validate that the command header size field does not exceed SVGA_CMD_MAX_DATASIZE before using it in buffer offset arithmetic, allowing a crafted oversized value to wrap around and produce an incorrect (smaller) offset — leading to an out-of-bounds memory write (Red Hat CVE, ZDI Advisory). Exploitation requires local access with low privileges (e.g., a standard user account) and no user interaction; the attacker must be able to execute code on the target system and interact with the VMware graphics device interface (ZDI Advisory). The vulnerability was introduced at kernel commit 8ce75f8ab904 and is present across multiple stable branches (ENISA EUVD).
Successful exploitation allows a local attacker with low-privileged code execution to escalate privileges to kernel level, enabling arbitrary code execution in the context of the kernel. This results in full compromise of confidentiality, integrity, and availability of the affected system — an attacker could read or modify any kernel memory, crash the system, or install persistent rootkits (ZDI Advisory, Red Hat CVE). In multi-tenant or virtualized environments running the vmwgfx driver, exploitation could facilitate lateral movement or container/VM escape scenarios.
A ZDI advisory (ZDI-26-232) was published on March 30, 2026, documenting the vulnerability with technical details, indicating researcher-level analysis is publicly available (ZDI Advisory). As of the available data, there is no confirmed public proof-of-concept exploit code or evidence of active in-the-wild exploitation; the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.024% (0.000240), reflecting a currently low probability of exploitation in the near term (Red Hat CVE). The vulnerability was notably referenced in the context of Pwn2Own research targeting Red Hat Enterprise Linux (Offseq Radar).
drm/vmwgfx driver loaded (common on systems with VMware virtual graphics hardware or SVGA emulation)./proc/modules for vmwgfx or verifying /dev/dri/ device nodes are present.size field is set to a value that, when used in buffer offset arithmetic, causes an integer overflow — producing a value exceeding SVGA_CMD_MAX_DATASIZE but wrapping to a small or zero offset.DRM_IOCTL_VMW_EXECBUF) to submit the crafted command buffer to the vmw_cmd_check function in the kernel driver./var/log/kern.log or dmesg output referencing vmwgfx or vmw_cmd_check; audit log entries showing DRM_IOCTL_VMW_EXECBUF calls from unprivileged users./etc/passwd or /etc/sudoers; presence of rootkit artifacts or kernel modules not present at boot.Patches have been released for all affected stable Linux kernel branches: 5.4.302, 5.10.247, 5.15.197, 6.1.159, 6.6.117, 6.12.59, 6.17.9, and 6.18 (ENISA EUVD). Red Hat has issued multiple errata (RHSA-2026:0453, RHSA-2026:0793, RHSA-2026:0917, RHSA-2026:1142, RHSA-2026:1148, RHSA-2026:1194, RHSA-2026:1236, RHSA-2026:1443, RHSA-2026:1445, RHSA-2026:1495, RHSA-2026:1512, RHSA-2026:1886) for RHEL variants (Red Hat CVE). Ubuntu has released USN-8096-1, USN-8096-2, USN-8096-3, and USN-8096-5; Debian LTS and SUSE have also issued advisories. As a workaround where patching is not immediately possible, administrators can blacklist the vmwgfx kernel module (echo 'blacklist vmwgfx' >> /etc/modprobe.d/blacklist.conf) on systems that do not require VMware graphics support, and restrict access to DRM device nodes.
The ZDI published advisory ZDI-26-232 on March 30, 2026, attributing the discovery to security researchers and noting the vulnerability's connection to Pwn2Own research targeting Red Hat Enterprise Linux (ZDI Advisory). A dedicated write-up was published by Systemtek in March 2026 covering the technical details of the RHEL vmwgfx integer overflow (Systemtek Blog). Community coverage has been broad, with multiple Linux security news outlets (LinuxSecurity, Pro-Linux, LinuxCompatible) tracking the distribution of patches across RHEL, Rocky Linux, AlmaLinux, Oracle Linux, Ubuntu, SUSE, and Debian.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."