Skip to content
Heist/ feed
Back to feed
Critical

rust-vmm-sys-util — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2023-50711

vmm-sys-util is a collection of modules that provides helpers and utilities used by multiple rust-vmm components. Starting in version 0.5.0 and prior to version 0.12.0, an issue in the `FamStructWrapper::deserialize` implementation provided by the crate for `vmm_sys_util::fam::FamStructWrapper` 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. 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.

Products
rust-vmm-sys-util
Affected versions
0.11.1-5, 0.12.1-1, 0.12.1-2, 0.15.0-3
Fixed versions
Not specified
CVEs
CVE-2023-50711
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:44 UTC · Revision 1

Source evidence

UBUNTU-CVE-2023-50711

core-osv · Original source

Published 2 Jan 2024, 20:15 UTC

vmm-sys-util is a collection of modules that provides helpers and utilities used by multiple rust-vmm components. Starting in version 0.5.0 and prior to version 0.12.0, an issue in the `FamStructWrapper::deserialize` implementation provided by the crate for `vmm_sys_util::fam::FamStructWrapper` 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. 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.

osv:UBUNTU-CVE-2023-50711

rust-vmm-sys-util

Fixed versions: Not specified

rust-vmm-sys-util

Fixed versions: Not specified

rust-vmm-sys-util

Fixed versions: Not specified

rust-vmm-sys-util

Fixed versions: Not specified

Complete source record
{
  "id": "6e61fd4a927102656f2457b27131def4b188b41331f68c07242d267e0f94e004",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2023-50711",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2023-50711",
    "summary": "vmm-sys-util is a collection of modules that provides helpers and utilities used by multiple rust-vmm components. Starting in version 0.5.0 and prior to version 0.12.0, an issue in the `FamStructWrapper::deserialize` implementation provided by the crate for `vmm_sys_util::fam::FamStructWrapper` 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. 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.",
    "evidence": "osv:UBUNTU-CVE-2023-50711",
    "products": [
      {
        "name": {
          "value": "rust-vmm-sys-util",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.11.1-5",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.12.1-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-vmm-sys-util",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.12.1-2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-vmm-sys-util",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.15.0-3",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-vmm-sys-util",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.12.1-2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.15.0-3",
            "evidence": "/affected/3/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2023-50711",
      "aliases": [
        "UBUNTU-CVE-2023-50711"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-vmm-sys-util",
            "purl": "pkg:deb/ubuntu/rust-vmm-sys-util?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.11.1-5",
            "0.12.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-50711.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-vmm-sys-util-dev",
                "binary_version": "0.12.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-vmm-sys-util",
            "purl": "pkg:deb/ubuntu/rust-vmm-sys-util?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.12.1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-50711.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-vmm-sys-util-dev",
                "binary_version": "0.12.1-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-vmm-sys-util",
            "purl": "pkg:deb/ubuntu/rust-vmm-sys-util?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.15.0-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-50711.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-vmm-sys-util-dev",
                "binary_version": "0.15.0-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-vmm-sys-util",
            "purl": "pkg:deb/ubuntu/rust-vmm-sys-util?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.12.1-2",
            "0.15.0-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-50711.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-vmm-sys-util-dev",
                "binary_version": "0.15.0-3"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:22.038906413Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-50711"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2023-50711",
        "https://github.com/rust-vmm/vmm-sys-util/security/advisories/GHSA-875g-mfp6-g7f9",
        "https://www.cve.org/CVERecord?id=CVE-2023-50711"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-50711",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 357344,
  "published_at": "2024-01-02T20:15:00+00:00"
}