Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-36960 Overview
CVE-2024-36960 is an out-of-bounds read vulnerability [CWE-125] in the Linux kernel's drm/vmwgfx driver, which supports VMware virtual GPU hardware. The flaw stems from an incorrect length assignment in drm_event structures used for fence signaled events. The length was set to the parent structure rather than the drm_vmw_event_fence structure actually used. When drm_read copies the event to user space, the length mismatch results in out-of-bounds reads of kernel memory. A local authenticated attacker with low privileges can trigger the issue to leak sensitive kernel data or cause system instability.
Critical Impact
Local low-privilege attackers can trigger out-of-bounds kernel memory reads via the vmwgfx DRM interface, exposing kernel memory contents and impacting system availability.
Affected Products
- Linux kernel versions prior to the fix commits across 5.x and 6.x stable branches
- Linux kernel 6.9 release candidates rc1 through rc6
- Debian GNU/Linux 10 (Buster) via the Debian LTS advisories
Discovery Timeline
- 2024-06-03 - CVE-2024-36960 published to NVD
- 2026-08-04 - Last updated in NVD database
Technical Details for CVE-2024-36960
Vulnerability Analysis
The vulnerability resides in the VMware Graphics (vmwgfx) Direct Rendering Manager (DRM) driver. The driver emits fence signaled events to user space to notify completion of GPU operations. These events are delivered through the standard drm_event mechanism, which reads a length field to determine how many bytes to copy to the user space buffer.
In the vulnerable code path, the length field of the drm_event was set to the size of a parent containing structure rather than the smaller drm_vmw_event_fence structure that actually holds the event payload. When drm_read processes the event queue, it uses the oversized length value to copy data from the kernel event buffer into the user-provided buffer. The copy therefore extends beyond the valid event data into adjacent kernel memory.
The disclosed memory can include heap contents allocated near the event structure, enabling information disclosure that may support further exploitation such as bypassing Kernel Address Space Layout Randomization (KASLR).
Root Cause
The root cause is an incorrect size assignment in the vmwgfx fence event emission logic. The drm_event.length field was initialized using sizeof of the wrong structure, producing a value larger than the actual event payload copied to the user. There is no validation of the length against the true payload size before copy_to_user runs through drm_read.
Attack Vector
Exploitation requires local access and the ability to open the /dev/dri/cardN device node associated with the vmwgfx driver. A low-privileged user with access to the DRM device can request a fence signaled event and then invoke read() on the DRM file descriptor to retrieve the oversized event. The attacker does not require user interaction. The vulnerability is only exploitable on systems running the vmwgfx driver, which is typically present on Linux guests running under VMware hypervisors.
No verified public proof-of-concept exploit code is available for this issue. The upstream kernel fix is distributed across multiple stable branch commits referenced in the kernel git repository.
Detection Methods for CVE-2024-36960
Indicators of Compromise
- Unexpected read() activity from unprivileged processes against /dev/dri/card* nodes on VMware guest systems.
- Kernel log entries referencing vmwgfx fence event errors or unusual DRM event sizes.
- Processes accessing DRM device nodes that have no legitimate graphical workload.
Detection Strategies
- Audit which users and services have access to /dev/dri/* device nodes on VMware-hosted Linux guests.
- Correlate uname -r kernel version data across the fleet to identify hosts running vulnerable kernel builds.
- Monitor syscall telemetry for anomalous ioctl and read patterns targeting the vmwgfx driver from non-graphical workloads.
Monitoring Recommendations
- Enable kernel address sanitizer (KASAN) reports in test environments to surface out-of-bounds reads in the DRM subsystem.
- Centralize kernel log collection and alert on new vmwgfx warnings or DRM event-related errors.
- Track package inventory of linux-image-* versions against the fixed versions published by distribution vendors.
How to Mitigate CVE-2024-36960
Immediate Actions Required
- Apply the kernel update from your Linux distribution vendor that includes the upstream vmwgfx fence event length fix.
- Debian 10 users should install the kernel updates from Debian LTS Announcement #19 and Debian LTS Announcement #20.
- Restrict access to /dev/dri/* device nodes to trusted users and services only, using appropriate group membership and udev rules.
Patch Information
The fix was committed to multiple stable kernel branches. Representative upstream commits include Kernel Git Commit 0dbfc736, Kernel Git Commit 2f527e3e, Kernel Git Commit 3cd68235, Kernel Git Commit 7b5fd3af, Kernel Git Commit a37ef761, Kernel Git Commit b7bab33c, Kernel Git Commit cef0962f, and Kernel Git Commit deab6659. The fix sets drm_event.length to the correct drm_vmw_event_fence size before the event is queued.
Workarounds
- Where VMware virtual graphics acceleration is not required, blacklist the vmwgfx kernel module to prevent the vulnerable code path from loading.
- Tighten permissions on /dev/dri/card* so only members of the video group can open the device, reducing the exposed attack surface.
- Avoid running untrusted workloads on VMware guest systems until the kernel is patched.
# Blacklist the vmwgfx module where virtual GPU acceleration is not needed
echo "blacklist vmwgfx" | sudo tee /etc/modprobe.d/blacklist-vmwgfx.conf
sudo update-initramfs -u
# Verify the running kernel version against your distribution's fixed release
uname -r
# On Debian-based systems, install the patched kernel package
sudo apt-get update && sudo apt-get install --only-upgrade linux-image-amd64
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

