
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2024-35944 affects the Linux kernel's VMCI (Virtual Machine Communication Interface) component. The vulnerability was discovered by Syzkaller and reported in May 2024. It involves a memcpy() run-time warning in the dg_dispatch_as_host() function within the VMware VMCI Driver (Kernel Git).
The vulnerability occurs in the drivers/misc/vmw_vmci/vmci_datagram.c file where a field-spanning write operation is performed using memcpy(). The issue arises when copying data between structures where the size calculation VMCI_DG_SIZE(_dg) (24 + payload_size) causes a write across multiple structure fields. The specific problematic code attempts to copy data into dg_info->msg, which is a 24-byte structure, but the operation spans into the adjacent msg_payload field (Kernel Git).
The vulnerability results in a runtime warning when FORTIFY_SOURCE is enabled, indicating potentially unsafe memory operations that could affect system stability. While primarily a code quality issue, it could potentially lead to memory corruption or system instability (Kernel Git).
The issue was discovered through fuzzing with Syzkaller, which managed to trigger the condition by setting a payload_size value that caused the memcpy operation to span across structure boundaries. The vulnerability requires access to the VMCI driver functionality (Kernel Git).
The fix involves splitting the memcpy() operation into two parts: a direct structure assignment for the msg field and a separate memcpy() for the payload data. This change ensures proper handling of structure boundaries and complies with FORTIFY_SOURCE requirements. The patch has been merged into various kernel versions and is available through distribution updates (Kernel Git, Debian LTS).
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."