CVE-2021-29929
JSON

7.5high

Double free in endian_trait

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-vpw8-43wm-rxw5RUSTSEC-2021-0039

Description

An issue was discovered in the endian_trait crate through 2021-01-04 for Rust. A double drop can occur when a user-provided Endian impl panics.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
endian_trait (crates.io)up to 0.6.0, from 0.0.0-0GitHub Advisory Database, RustSec Advisory Database
endian_trait_project endian_traitup to 2021-01-04NVD

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 endian_trait crate through 2021-01-04 for Rust. A double drop can occur when a user-provided Endian impl panics.

RustSec Advisory Database

Affected versions of the crate does not guard against panic from user-provided impl of Endian trait, which is a safe trait that users can implement. If a user-provided implementation of the Endian trait panics, double-drop is triggered due to the duplicated ownership of T created by ptr::read().

Double-drop (or double free) can cause memory corruption in the heap.

NVD (es)

Se detectó un problema en la crate endian_trait hasta el 4 de enero de 2021 para Rust. Una doble caída puede ocurrir cuando un implementación de Endian proporcionado por el usuario entra en pánico.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-29929 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-vpw8-43wm-rxw5 changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2021-0039 changed 2023-11-08CC0-1.0
NVDCVE-2021-29929 changed 2026-06-17Public domain