GHSA-cv7x-6rc6-pq5v

Suggest an improvement
Source
https://github.com/advisories/GHSA-cv7x-6rc6-pq5v
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-cv7x-6rc6-pq5v/GHSA-cv7x-6rc6-pq5v.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-cv7x-6rc6-pq5v
Aliases
Published
2021-08-25T20:53:05Z
Modified
2023-11-08T04:05:16.917657Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Double free in containers
Details

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.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-415"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-19T18:40:39Z"
}
References

Affected packages

crates.io / containers

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.9.11