Email me

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.

Cratevmm-sys-util
TypeUnsound (memory-corruption)
Affected versionsFrom 0.5.0 before 0.12.0.
Fixed in0.12.0
SeverityMedium, CVSS 5.7
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L
Published2024-01-02
Last changed2026-10-12
Also known asCVE-2023-50711, GHSA-875g-mfp6-g7f9
Affected functionsvmm_sys_util::fam::FamStructWrapper::deserialize

What to do

  1. See which version you have: cargo tree -i vmm-sys-util (it also shows which of your dependencies pulls it in).
  2. 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 example vmm-sys-util = "0.12.0") or update the dependency that pulls it in.
  3. 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

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 →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ