GitHub Advisoryadvisory · crates.io
GHSA-vfqx-hv88-f9cv Double-free in id-map
CRITICAL
Official page ↗
- Aliases
- CVE-2021-30456
- Ecosystem
- crates.io
- Packages
- id-map
- 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 id-map: <= 0.2.1 (no fix yet)
Description
A double free can occur in get_or_insert upon a panic of a user-provided f function. get_or_insert reserves space for a value, before calling the user provided insertion function f. If the function f panics then uninitialized or previously freed memory can be dropped.
Related
Alias · CVE (1)
- CVE-2021-30456 An issue was discovered in the id-map crate through 2021-02-26 for Rust. vulnerability
Weakness · CWE (1)
- CWE-415 Double Free weakness