CVE-2021-28875
Summary
| CVE | CVE-2021-28875 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-04-11 20:15:00 UTC |
| Updated | 2022-11-03 19:38:00 UTC |
| Description | In the standard library in Rust before 1.50.0, read_to_end() does not validate the return value from Read in an unsafe context. This bug could lead to a buffer overflow. |
Risk And Classification
Problem Types: CWE-252
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Rust: Multiple Vulnerabilities (GLSA 202210-09) — Gentoo security | GENTOO | security.gentoo.org | |
| Fix handling of malicious Readers in read_to_end by sfackler · Pull Request #80895 · rust-lang/rust · GitHub | MISC | github.com | |
| Heap buffer overflow in `read_to_end_with_reservation()` · Issue #80894 · rust-lang/rust · GitHub | MISC | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 159344 Oracle Enterprise Linux Security Update for rust-toolset:ol8 (ELSA-2021-3063)
- 182504 Debian Security Update for rustc (CVE-2021-28875)
- 239538 Red Hat Update for rust-toolset:rhel8 (RHSA-2021:3063)
- 296065 Oracle Solaris 11.4 Support Repository Update (SRU) 39.107.1 Missing (CPUOCT2021)
- 377347 Alibaba Cloud Linux Security Update for rust-toolset:rhel8 (ALINUX3-SA-2021:0061)
- 710640 Gentoo Linux Rust Multiple Vulnerabilities (GLSA 202210-09)
- 900062 CBL-Mariner Linux Security Update for rust 1.47.0
- 903213 Common Base Linux Mariner (CBL-Mariner) Security Update for rust (4082)
- 940361 AlmaLinux Security Update for rust-toolset:rhel8 (ALSA-2021:3063)
- 960098 Rocky Linux Security Update for rust-toolset:rhel8 (RLSA-2021:3063)