Rust advisories / vmm-sys-util
Unsound MediumRUSTSEC-2024-0002 · vmm-sys-util
RUSTSEC-2024-0002: `serde` deserialization for `FamStructWrapper` lacks bound checks that could potentially lead to out-of-bounds memory access
Short answervmm-sys-util has an API that can cause undefined behaviour from safe code: `serde` deserialization for `FamStructWrapper` lacks bound checks that could potentially lead to out-of-bounds memory access. Fixed in 0.12.0.
| Crate | vmm-sys-util |
|---|---|
| Type | Unsound (memory-corruption) |
| Affected versions | From 0.5.0 before 0.12.0. |
| Fixed in | 0.12.0 |
| Severity | Medium, CVSS 5.7 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L |
| Published | 2024-01-02 |
| Last changed | 2026-10-12 |
| Also known as | CVE-2023-50711, GHSA-875g-mfp6-g7f9 |
| Affected functions | vmm_sys_util::fam::FamStructWrapper::deserialize |
What to do
- See which version you have:
cargo tree -i vmm-sys-util(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p vmm-sys-util. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplevmm-sys-util = "0.12.0") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
Impact
An issue was discovered in the FamStructWrapper::deserialize implementation provided by the crate for vmm_sys_util::fam::FamStructWrapper, which can lead to out of bounds memory accesses. The deserialization does not check that the length stored in the header matches the flexible array length. Mismatch in the lengths might allow out of bounds memory access through Rust-safe methods.
Impacted versions: >= 0.5.0
Patches
The issue was corrected in version 0.12.0 by inserting a check that verifies the lengths of compared flexible arrays are equal for any deserialized header and aborting deserialization otherwise. Moreover, the API was changed so that header length can only be modified through Rust-unsafe code. This ensures that users cannot trigger out-of-bounds memory access from Rust-safe code.
References
- Package: crates.io/crates/vmm-sys-util
- Advisory: rustsec.org/advisories/RUSTSEC-2024-0002.html
- Web: github.com/rust-vmm/vmm-sys-util/commit/30172fca2a8e0a38667d934ee56682247e13f167
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?