---
id: CVE-2023-50711
aliases:
  - RUSTSEC-2024-0002
  - GHSA-875g-mfp6-g7f9
title: >-
  `serde` deserialization for `FamStructWrapper` lacks bound checks that could
  potentially lead to out-of-bounds memory access
summary: >-
  `serde` deserialization for `FamStructWrapper` lacks bound checks that could
  potentially lead to out-of-bounds memory access
severity: medium
cvss: 5.7
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L'
vendor: vmm-sys-util
product: vmm-sys-util
ecosystem: rust
affected:
  - 'vmm-sys-util >= 0.5.0, < 0.12.0'
patched:
  - vmm-sys-util 0.12.0
published: '2024-01-02'
updated: '2026-10-12'
sourceUpdated: '2026-10-12T18:00:06.810784964Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/RUSTSEC-2024-0002'
references:
  - url: 'https://crates.io/crates/vmm-sys-util'
  - url: 'https://rustsec.org/advisories/RUSTSEC-2024-0002.html'
  - url: >-
      https://github.com/rust-vmm/vmm-sys-util/commit/30172fca2a8e0a38667d934ee56682247e13f167
tags:
  - osv
  - rust
epss: 0.00652
epssPercentile: 0.51014
ingestedAt: '2026-10-13T11:45:30.164Z'
---

## Overview

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

## Affected packages

- `vmm-sys-util >= 0.5.0, < 0.12.0`

## Remediation

Upgrade to a patched release:

- `vmm-sys-util 0.12.0`
