Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. slice-deque
  4. ›
  5. CVE-2021-29938

CVE-2021-29938: Double free in slice-deque

August 25, 2021 (updated March 30, 2023)

An issue was discovered in the slice-deque crate through 2021-02-19 for Rust. A double drop can occur in SliceDeque::drain_filter upon a panic in a predicate function.

References

  • github.com/advisories/GHSA-p9gf-gmfv-398m
  • github.com/gnzlbg/slice_deque
  • github.com/gnzlbg/slice_deque/issues/90
  • nvd.nist.gov/vuln/detail/CVE-2021-29938
  • rustsec.org/advisories/RUSTSEC-2021-0047.html

Code Behaviors & Features

Detect and mitigate CVE-2021-29938 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.3.0

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-415: Double Free

Source file

cargo/slice-deque/CVE-2021-29938.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:16 +0000.