Miggo Logo

GHSA-3qx8-rv27-j6gp: Undefined behaviour in `kvm_ioctls::ioctls::vm::VmFd::create_device`

N/A

CVSS Score

Basic Information

CVE ID
-
EPSS Score
-
Published
12/23/2024
Updated
12/23/2024
KEV Status
No
Technology
TechnologyRust

Technical Details

CVSS Vector
-
Package NameEcosystemVulnerable VersionsFirst Patched Version
kvm-ioctlsrust< 0.19.10.19.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

*n issu* w*s i**nti*i** in t** `Vm**::*r**t*_**vi** *un*tion`, l***in* to un***in** ****vior *n* mis*ompil*tions on rust* *.**.* *n* n*w*r *u* to t** *un*tion's viol*tion o* Rust's point*r s***ty rul*s. T** *un*tion *own**st** * mut**l* r***r*n** to

Reasoning

T** vuln*r**ility **s*ription *xpli*itly n*m*s Vm**::*r**t*_**vi** *s t** *****t** *un*tion. T** *it*u* PR #*** s*ows t** *ix w*s ***n*in* *rom io*tl_wit*_r** to io*tl_wit*_mut_r** in vm.rs, *on*irmin* t** lo**tion. T** root **us* m*t***s *W*-*** (ty