9.8critical
Reading on uninitialized buffer may cause UB ( `gfx_auxil::read_spirv()` )
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 1.23% (higher than 69% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-28p5-7rg4-8v99GHSA-ff2r-xpwq-6whjRUSTSEC-2021-0091
Description
An issue was discovered in the gfx-auxil crate through 2021-01-07 for Rust. gfx_auxil::read_spirv may read from uninitialized memory locations.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| gfx-auxil (crates.io) | up to 0.10.0, from 0.0.0-0 | GitHub Advisory Database, RustSec Advisory Database |
| gfx-auxil_project gfx-auxil | up to 0.10.0 | NVD |
All scores
| GitHub | high rating | |
| 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 |
| 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 gfx-auxil crate through 2021-01-07 for Rust. gfx_auxil::read_spirv may read from uninitialized memory locations.
GitHub Advisory Database
Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation.
Arbitrary Read implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer.
Reading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.
GitHub Advisory Database
Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation.
Arbitrary Read implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer. Reading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.
NVD (es)
Se ha detectado un problema en la crate gfx-auxil versiones hasta 07-01-2021 para Rust. La función gfx_auxil::read_spirv puede leer de ubicaciones de memoria no inicializadas
References
| https://rustsec.org/advisories/RUSTSEC-2021-0091.html | advisory, third-party-advisory, web | |
| https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/gfx-auxil/RUSTSEC-2021-0091.md | third-party-advisory, web | |
| https://github.com/gfx-rs/gfx/issues/3567 | report, web | |
| https://github.com/gfx-rs/gfx | package | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-45689 | advisory | |
| https://crates.io/crates/gfx-auxil | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-45689 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-28p5-7rg4-8v99 changed 2023-11-08 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-ff2r-xpwq-6whj changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2021-0091 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2021-45689 changed 2026-06-17 | Public domain |