CVE-2023-50711: `serde` deserialization for `FamStructWrapper` lacks bound checks that could potentially lead to out-of-bounds memory access
(updated )
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
References
- github.com/advisories/GHSA-875g-mfp6-g7f9
- github.com/rust-vmm/vmm-sys-util
- github.com/rust-vmm/vmm-sys-util/commit/30172fca2a8e0a38667d934ee56682247e13f167
- github.com/rust-vmm/vmm-sys-util/security/advisories/GHSA-875g-mfp6-g7f9
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W5XMCLV2P3ANS3XN4NXZTV4PUNTLWUNJ
- nvd.nist.gov/vuln/detail/CVE-2023-50711
- rustsec.org/advisories/RUSTSEC-2024-0002.html
Detect and mitigate CVE-2023-50711 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →