Summary
Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2021-31162: 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-28879: 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-28878: 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-28876: 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-2020-36323: 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.
Fixed packages 13
| Release | Package | Fixed in |
|---|---|---|
| Amazon Linux · 2 | cargo | 0:1.56.1-1.amzn2.0.1 |
| Amazon Linux · 2 | cargo-doc | 0:1.56.1-1.amzn2.0.1 |
| Amazon Linux · 2 | clippy | 0:1.56.1-1.amzn2.0.1 |
| Amazon Linux · 2 | rls | 0:1.56.1-1.amzn2.0.1 |
| Amazon Linux · 2 | rust | 0:1.56.1-1.amzn2.0.1 |
| Amazon Linux · 2 | rust-analysis | 0:1.56.1-1.amzn2.0.1 |
| Amazon Linux · 2 | rust-debugger-common | 0:1.56.1-1.amzn2.0.1 |
| Amazon Linux · 2 | rust-debuginfo | 0:1.56.1-1.amzn2.0.1 |
| Amazon Linux · 2 | rust-doc | 0:1.56.1-1.amzn2.0.1 |
| Amazon Linux · 2 | rust-gdb | 0:1.56.1-1.amzn2.0.1 |
| Amazon Linux · 2 | rust-src | 0:1.56.1-1.amzn2.0.1 |
| Amazon Linux · 2 | rust-std-static | 0:1.56.1-1.amzn2.0.1 |
| Amazon Linux · 2 | rustfmt | 0:1.56.1-1.amzn2.0.1 |
Vulnerabilities 5
-
Unscored —
In the standard library in Rust before 1.52.0, there is an optimization for joining strings that can cause uninitialize…
-
Unscored —
In the standard library in Rust before 1.52.0, the Zip implementation has a panic safety issue. It calls __iterator_get…
-
Unscored —
In the standard library in Rust before 1.52.0, the Zip implementation calls __iterator_get_unchecked() more than once f…
-
Unscored —CVE-2021-28879 Public exploit
In the standard library in Rust before 1.52.0, the Zip implementation can report an incorrect size due to an integer ov…
-
Unscored —
In the standard library in Rust before 1.52.0, a double free can occur in the Vec::from_iter function if freeing the el…
References
-
web
https://alas.aws.amazon.com/cve/html/CVE-2020-36323.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2021-28876.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2021-28878.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2021-28879.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2021-31162.html