Advisory

GHSA-955p-rc5h-hg6h

Also known as: CVE-2021-29930, CVE-2021-29931, GHSA-327x-39hh-65wf, RUSTSEC-2021-0040

Summary

Double free in arenavec

Details

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::<T, H>::new(). Panic within T::drop() leads to double drop of T, when it is invoked either from common::SliceVec::<T, H>::resize_with() or common::SliceVec::<T, H>::resize()

Either case causes memory corruption in the heap memory.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-08-25 20:55 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

arenavec

crates.io · All systems

Affected

  • introduced 0, last affected 0.1.1 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences