CVE-2021-29938
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
slice-deque (crates.io)up to 0.3.0, from 0.0.0-0GitHub Advisory Database, RustSec Advisory Database
slice-deque_project slice-dequeup to 2021-02-19NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
RustSec Advisory Database7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV: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

Sources

SourceRecordLicence
CVE ListCVE-2021-29938 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-p9gf-gmfv-398m changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2021-0047 changed 2023-11-08CC0-1.0
NVDCVE-2021-29938 changed 2026-06-17Public domain