n/a · Vulnerability
cve-program · CVE-2021-29937
PublishedAn 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().
Read the publisher's advisoryeuvd · EUVD-2021-1750
PublishedAn 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().
Read the publisher's advisorynvd · CVE-2021-29937
PublishedAn 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().
Read the publisher's advisoryosv · GHSA-hpcx-3pw8-g3j2
PublishedAn 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()
Read the publisher's advisoryosv · RUSTSEC-2021-0046
Withdrawn`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.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2021-29937 · CVE overview and exploitation status
cve-program · CVE-2021-29937
euvd · EUVD-2021-1750
nvd · CVE-2021-29937
osv · GHSA-hpcx-3pw8-g3j2
- https://nvd.nist.gov/vuln/detail/CVE-2021-29937
- https://github.com/Yoric/telemetry.rs/issues/45
- https://github.com/Yoric/telemetry.rs/commit/2820cf12f2e08645fd6d1f15b4a90a54d6082a81
- https://github.com/Yoric/telemetry.rs
- https://rustsec.org/advisories/RUSTSEC-2021-0046.html
osv · RUSTSEC-2021-0046
Related changes
Linked by CVE identifierNo related changes are available here.