ALAS2-2022-1816
Active ModerateALAS2-2022-1816 (medium): rust
Related CVEs
CVE identifiers linked by this publisher.
Publisher relationship details 5 records
Shared by all 5 CVE relationships
Exact relationship value
advisory_listExact field value
referencesExact evidence value
https://alas.aws.amazon.com/AL2/ALAS2-2022-1816.html| CVE |
|---|
| CVE-2020-36323 |
| CVE-2021-28876 |
| CVE-2021-28878 |
| CVE-2021-28879 |
| CVE-2021-31162 |
Description
In the standard library in Rust before 1.52.0, there is an optimization for joining strings that can cause uninitialized bytes to be exposed (or the program to crash) if the borrowed string changes after its length is checked. (CVE-2020-36323) In the standard library in Rust before 1.52.0, the Zip implementation has a panic safety issue. It calls
Read full publisher description 1334 characters
In the standard library in Rust before 1.52.0, there is an optimization for joining strings that can cause uninitialized bytes to be exposed (or the program to crash) if the borrowed string changes after its length is checked. (CVE-2020-36323) In the standard library in Rust before 1.52.0, the Zip implementation has a panic safety issue. It calls __iterator_get_unchecked() more than once for the same index when the underlying iterator panics (in certain conditions). This bug could lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait. (CVE-2021-28876) In the standard library in Rust before 1.52.0, the Zip implementation calls __iterator_get_unchecked() more than once for the same index (under certain conditions) when next_back() and next() are used together. This bug could lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait. (CVE-2021-28878) In the standard library in Rust before 1.52.0, the Zip implementation can report an incorrect size due to an integer overflow. This bug can lead to a buffer overflow when a consumed Zip iterator is used again. (CVE-2021-28879) In the standard library in Rust before 1.52.0, a double free can occur in the Vec::from_iter function if freeing the element panics. (CVE-2021-31162)
Solution
Run yum update rust or yum update --advisory ALAS2-2022-1816 to update your system.
Affected packages
Each item is one publisher package occurrence. Shared details are shown once; differences stay with the occurrence.
Shared package data
Applies to all 4 occurrences-
1rust
Occurrence-specific details
- Architecture
- aarch64
Replacement RPMs
- rust-1.56.1-1.amzn2.0.1.aarch64
- rust-std-static-1.56.1-1.amzn2.0.1.aarch64
- rust-doc-1.56.1-1.amzn2.0.1.aarch64
- cargo-1.56.1-1.amzn2.0.1.aarch64
- rustfmt-1.56.1-1.amzn2.0.1.aarch64
- rls-1.56.1-1.amzn2.0.1.aarch64
- clippy-1.56.1-1.amzn2.0.1.aarch64
- rust-analysis-1.56.1-1.amzn2.0.1.aarch64
- rust-debuginfo-1.56.1-1.amzn2.0.1.aarch64
-
2rust
Occurrence-specific details
- Architecture
- noarch
Replacement RPMs
- rust-debugger-common-1.56.1-1.amzn2.0.1.noarch
- rust-gdb-1.56.1-1.amzn2.0.1.noarch
- cargo-doc-1.56.1-1.amzn2.0.1.noarch
- rust-src-1.56.1-1.amzn2.0.1.noarch
-
3rust
Occurrence-specific details
- Architecture
- src
Replacement RPMs
- rust-1.56.1-1.amzn2.0.1.src
-
4rust
Occurrence-specific details
- Architecture
- x86_64
Replacement RPMs
- rust-1.56.1-1.amzn2.0.1.x86_64
- rust-std-static-1.56.1-1.amzn2.0.1.x86_64
- rust-doc-1.56.1-1.amzn2.0.1.x86_64
- cargo-1.56.1-1.amzn2.0.1.x86_64
- rustfmt-1.56.1-1.amzn2.0.1.x86_64
- rls-1.56.1-1.amzn2.0.1.x86_64
- clippy-1.56.1-1.amzn2.0.1.x86_64
- rust-analysis-1.56.1-1.amzn2.0.1.x86_64
- rust-debuginfo-1.56.1-1.amzn2.0.1.x86_64
CVSS assessments
Publisher supplied scores and vectors; these do not replace the advisory severity above.
No CVSS assessments were provided.
Publisher references
10- CVE-2020-36323 https://access.redhat.com/security/cve/CVE-2020-36323
- CVE-2021-28876 https://access.redhat.com/security/cve/CVE-2021-28876
- CVE-2021-28878 https://access.redhat.com/security/cve/CVE-2021-28878
- CVE-2021-28879 https://access.redhat.com/security/cve/CVE-2021-28879
- CVE-2021-31162 https://access.redhat.com/security/cve/CVE-2021-31162
- CVE-2020-36323 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-36323
- CVE-2021-28876 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-28876
- CVE-2021-28878 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-28878
- CVE-2021-28879 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-28879
- CVE-2021-31162 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-31162
Provenance
- Schema version
- Unknown
- Parser version
- amazon-alas/1
- Severity origin
- publisher
| Kind | Locator | Source commit | Document hash | Parser | Fetched |
|---|---|---|---|---|---|
| html_page | https://alas.aws.amazon.com/AL2/ALAS2-2022-1816.html | Unknown | dcf4535a71547b94475707ee736da3582f6c8f89f226f4c2b9999c6ab1b8ca3b | amazon-alas/1 | 2026-11-16T08:26:43Z |
| rss_entry | https://alas.aws.amazon.com/AL2/ALAS2-2022-1816.html | Unknown | Unknown | amazon-alas/1 | 2026-11-16T08:26:43Z |
| catalog_entry | https://alas.aws.amazon.com/AL2/ALAS2-2022-1816.html | Unknown | Unknown | amazon-alas/1 | 2026-11-16T08:26:43Z |