Vulnerability DatabaseRUSTSEC-2024-0428

RUSTSEC-2024-0428
Rust vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22257HIGH8.8
  • RustRust
  • salvo
NoYesJan 08, 2026
CVE-2026-22698HIGH8.7
  • RustRust
  • sm2
NoNoJan 10, 2026
CVE-2026-22699HIGH7.5
  • RustRust
  • sm2
NoNoJan 10, 2026
GHSA-g59m-gf8j-gjf5LOW3.7
  • RustRust
  • aws-sdk-eventbridge
NoYesJan 08, 2026
GHSA-585q-cm62-757jLOW2
  • RustRust
  • mnl
NoNoJan 09, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management