Junglewise Threat Intelligence

CVE-2025-40111: Linux Kernel vmwgfx use-after-free in resource validation

CVE-2025-40111 · Severity: high · CVSS 7.8 · Published 2025-11-12

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability exists in the Linux kernel's VMware graphics driver (vmwgfx) that could allow a local user to crash the system or potentially execute unauthorized code. The issue occurs when the system incorrectly handles memory for graphics resources, leading to a 'use-after-free' condition. This could impact the stability and security of virtualized environments using VMware graphics acceleration.

Technical details

A use-after-free (UAF) vulnerability exists in drivers/gpu/drm/vmwgfx/vmwgfx_validation.c within the Linux kernel. The flaw is rooted in the validation duplicates hashtable, where nodes allocated from an arena allocator are expected to be cleared during vmw_validation_drop_ht. However, if a resource is destroyed prematurely, a node can escape this cleanup process while remaining in the hashtable, leading to a UAF when the arena is cleared at the end of vmw_execbuf_process. A local attacker with access to the graphics subsystem could exploit this to cause a kernel panic or achieve local privilege escalation. The issue has been patched by ensuring nodes are properly deleted from the RCU hashtable when resource referencing fails.

Affected products

  • Linux Linux Kernel 4.20 to 6.11.x

Timeline

  • 2025-09-26: disclosed: Initial patch submission by Ian Forbes
  • 2025-10-29: patched: Patch committed to stable tree
  • 2025-11-12: advisory: CVE published

References

Related threats