GitHub Advisoryadvisory · crates.io

GHSA-955p-rc5h-hg6h Double free in arenavec

HIGH Published 2021-08-25 Modified 2023-06-13 Official page ↗
Aliases
CVE-2021-29931
Ecosystem
crates.io
Packages
arenavec
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-415
Reviewed
2021-08-19

Affected packages

• crates.io arenavec: <= 0.1.1 (no fix yet)

Description

Affected versions of this crate did not guard against potential panics that may happen from user-provided functions T::default() and T::drop(). Panic within T::default() leads to dropping uninitialized T, when it is invoked from common::Slice::::new(). Panic within T::drop() leads to double drop of T, when it is invoked either from common::SliceVec::::resize_with() or common::SliceVec::::resize() Either case causes memory corruption in the heap memory.

Related

Alias · CVE (1)

  • CVE-2021-29931 An issue was discovered in the arenavec crate through 2021-01-12 for Rust. vulnerability

Weakness · CWE (1)

References