GitHub Advisoryadvisory · crates.io

GHSA-cv7x-6rc6-pq5v Double free in containers

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

Affected packages

• crates.io containers: < 0.9.11 → fixed in 0.9.11

Description

Upon panic in a user-provided function f, fn mutate() & fn mutate2 drops twice a same object. Affected versions of this crate did not guard against double drop while temporarily duplicating an object's ownership with ptr::read(). Dropping a same object can result in memory corruption. The flaw was corrected in version "0.9.11" by fixing the code to abort upon panic.

Related

Alias · CVE (1)

  • CVE-2021-25907 An issue was discovered in the containers crate before 0.9.11 for Rust. vulnerability

Weakness · CWE (1)

References