GHSA-3qx8-rv27-j6gp: Undefined behaviour in `kvm_ioctls::ioctls::vm::VmFd::create_device`
N/A
CVSS Score
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
Published
12/23/2024
Updated
12/23/2024
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
-
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| kvm-ioctls | rust | < 0.19.1 | 0.19.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability description explicitly names VmFd::create_device as the affected function. The GitHub PR #298 shows the fix was changing from ioctl_with_ref to ioctl_with_mut_ref in vm.rs, confirming the location. The root cause matches CWE-843 (type confusion between mutable/immutable pointers) and aligns with the described undefined behavior pattern in Rust pointer handling.