CVE-2021-29937
JSON

9.8critical

Free of uninitialized memory in telemetry

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
1.42% (higher than 73% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-hpcx-3pw8-g3j2RUSTSEC-2021-0046

Description

An issue was discovered in the telemetry crate through 2021-02-17 for Rust. There is a drop of uninitialized memory if a value.clone() call panics within misc::vec_with_size().

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
telemetry (crates.io)before 0.1.3, from 0.0.0-0GitHub Advisory Database, RustSec Advisory Database
telemetry_project telemetryup to 2021-02-17NVD

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
RustSec Advisory Database9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

An issue was discovered in the telemetry crate through 2021-02-17 for Rust. There is a drop of uninitialized memory if a value.clone() call panics within misc::vec_with_size().

GitHub Advisory Database

An issue was discovered in the telemetry crate through 0.1.2 for Rust. There is a drop of uninitialized memory if a value.clone() call panics within misc::vec_with_size()

RustSec Advisory Database

misc::vec_with_size creates a vector of the provided size and immediately calls vec.set_len(size) on it, initially filling it with uninitialized memory. It then inserts elements using vec[i] = value.clone().

If the value.clone() call panics, uninitialized items in the vector will be dropped leading to undefined behavior.

Withdrawal

This advisory has been withdrawn because the above unsoundness cannot be triggered in safe code by dependents of the crate, as the Clone generic of private function misc::vec_with_size only instantiates to primitive types in public functions, which is impossible to panic.

NVD (es)

Se detectó un problema en la crate telemetry hasta el 17-02-2021 para Rust. Se presenta una perdida de la memoria no inicializada si una llamada de value.clone() entra en pánico dentro de la función misc::vec_with_size().

References

Sources

SourceRecordLicence
CVE ListCVE-2021-29937 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-hpcx-3pw8-g3j2 changed 2026-09-10CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2021-0046 changed 2026-08-29CC0-1.0
NVDCVE-2021-29937 changed 2026-06-17Public domain