7.5high
Double free in slice-deque
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 1.18% (higher than 68% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-p9gf-gmfv-398mRUSTSEC-2021-0047
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| slice-deque (crates.io) | up to 0.3.0, from 0.0.0-0 | GitHub Advisory Database, RustSec Advisory Database |
| slice-deque_project slice-deque | up to 2021-02-19 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| RustSec Advisory Database | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
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.
RustSec Advisory Database
Affected versions of the crate incremented the current index of the drain filter
iterator before calling the predicate function self.pred.
If the predicate function panics, it is possible for the last element in the iterator to be dropped twice.
NVD (es)
Se detectó un problema en la crate slice-deque hasta el 19-02-2021 para Rust. Puede ocurrir una doble perdida en la función SliceDeque::Drain_filter tras un pánico en una función predecida.
References
| https://rustsec.org/advisories/RUSTSEC-2021-0047.html | advisory, exploit, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-29938 | advisory | |
| https://github.com/gnzlbg/slice_deque/issues/90 | report, web | |
| https://github.com/gnzlbg/slice_deque | package | |
| https://crates.io/crates/slice-deque | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-29938 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-p9gf-gmfv-398m changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2021-0047 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2021-29938 changed 2026-06-17 | Public domain |