
Cloud Vulnerability DB
A community-led vulnerabilities database
RUSTSEC-2024-0428 is a vulnerability in the kvm-ioctls crate that involves undefined behavior in the VmFd::create_device method. The issue was discovered and disclosed in December 2024, affecting the kvm-ioctls crate versions prior to 0.19.1 and 0.20.0. The vulnerability stems from incorrect usage of ioctl wrapper functions that could lead to undefined behavior in Rust versions 1.82 and later (GitHub PR).
The vulnerability occurs due to the use of ioctl_with_ref instead of ioctl_with_mut_ref for create_device method, which needs to write to the kvm_create_device struct. In Rust versions 1.82 and later, particularly in release builds, this causes the kvm_create_device struct to be treated as immutable, leading to incorrect value being passed to the File::from_raw_fd call (GitHub PR).
When using affected versions with Rust 1.82 or later in release builds, the vulnerability can cause undefined behavior in applications using the kvm-ioctls crate's create_device functionality, potentially leading to incorrect system behavior or security issues (GitHub PR).
The vulnerability has been fixed in kvm-ioctls versions 0.19.1 and 0.20.0 by replacing the ioctl_with_ref call with ioctl_with_mut_ref in the create_device method. Users should upgrade to these or later versions to mitigate the issue (GitHub PR).
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."