9.8critical
Free of uninitialized memory in adtensor
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 1.37% (higher than 72% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-rg4m-gww5-7p47RUSTSEC-2021-0045
Description
An issue was discovered in the adtensor crate through 2021-01-11 for Rust. There is a drop of uninitialized memory via the FromIterator implementation for Vector and Matrix.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| adtensor (crates.io) | up to 0.0.3, from 0.0.0-0 | GitHub Advisory Database, RustSec Advisory Database |
| adtensor_project adtensor | up to 2021-01-11 | 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 adtensor crate through 2021-01-11 for Rust. There is a drop of uninitialized memory via the FromIterator implementation for Vector and Matrix.
GitHub Advisory Database
An issue was discovered in the adtensor crate through 0.0.3 for Rust. There is a drop of uninitialized memory via the FromIterator implementation for Vector and Matrix.
RustSec Advisory Database
The FromIterator<T> methods for Vector and Matrix rely on the type
parameter N to allocate space in the iterable.
If the passed in N type parameter is larger than the number of items returned
by the iterator, it can lead to uninitialized memory being left in the
Vector or Matrix type which gets dropped.
NVD (es)
Se detectó un problema en la crate adtensor hasta el 11-01-2021 para Rust. Se presenta una perdida de la memoria no inicializada por medio de la implementación de FromIterator para Vector y Matrix.
References
| https://rustsec.org/advisories/RUSTSEC-2021-0045.html | advisory, exploit, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-29936 | advisory | |
| https://github.com/charles-r-earp/adtensor/issues/4 | report, web | |
| https://github.com/charles-r-earp/adtensor | package | |
| https://crates.io/crates/adtensor | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-29936 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rg4m-gww5-7p47 changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2021-0045 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2021-29936 changed 2026-06-17 | Public domain |