From f0f01a78355f23998415bfc1592267871376ecd8 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 16:29:34 +0000 Subject: [PATCH] Publish GHSA-875g-mfp6-g7f9 --- .../GHSA-875g-mfp6-g7f9.json | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 advisories/github-reviewed/2024/01/GHSA-875g-mfp6-g7f9/GHSA-875g-mfp6-g7f9.json diff --git a/advisories/github-reviewed/2024/01/GHSA-875g-mfp6-g7f9/GHSA-875g-mfp6-g7f9.json b/advisories/github-reviewed/2024/01/GHSA-875g-mfp6-g7f9/GHSA-875g-mfp6-g7f9.json new file mode 100644 index 00000000000..1d6a6904f9a --- /dev/null +++ b/advisories/github-reviewed/2024/01/GHSA-875g-mfp6-g7f9/GHSA-875g-mfp6-g7f9.json @@ -0,0 +1,61 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-875g-mfp6-g7f9", + "modified": "2024-01-02T16:28:08Z", + "published": "2024-01-02T16:28:08Z", + "aliases": [ + "CVE-2023-50711" + ], + "summary": "`serde` deserialization for `FamStructWrapper` lacks bound checks that could potentially lead to out-of-bounds memory access", + "details": "### Impact\n\nAn 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.\n\nImpacted versions: >= 0.5.0\n\n### Patches\n\nThe 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.", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L" + } + ], + "affected": [ + { + "package": { + "ecosystem": "crates.io", + "name": "vmm-sys-util" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0.5.0" + }, + { + "fixed": "0.12.0" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/rust-vmm/vmm-sys-util/security/advisories/GHSA-875g-mfp6-g7f9" + }, + { + "type": "WEB", + "url": "https://github.com/rust-vmm/vmm-sys-util/commit/30172fca2a8e0a38667d934ee56682247e13f167" + }, + { + "type": "PACKAGE", + "url": "https://github.com/rust-vmm/vmm-sys-util" + } + ], + "database_specific": { + "cwe_ids": [ + + ], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2024-01-02T16:28:08Z", + "nvd_published_at": null + } +} \ No newline at end of file