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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| telemetry (crates.io) | before 0.1.3, from 0.0.0-0 | GitHub Advisory Database, RustSec Advisory Database |
| telemetry_project telemetry | up to 2021-02-17 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| RustSec Advisory Database | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV: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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-29937 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-hpcx-3pw8-g3j2 changed 2026-09-10 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2021-0046 changed 2026-08-29 | CC0-1.0 |
| NVD | CVE-2021-29937 changed 2026-06-17 | Public domain |