Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

Security advisory

ALAS2-2022-1816

Active Moderate

ALAS2-2022-1816 (medium): rust

Published
15 Jul 2022
Updated
15 Jul 2022

Related CVEs

CVE identifiers linked by this publisher.

5
Publisher relationship details 5 records

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.

4

Shared package data

Applies to all 4 occurrences
  1. 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
  2. 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
  3. 3rust

    Occurrence-specific details
    Architecture
    src

    Replacement RPMs

    • rust-1.56.1-1.amzn2.0.1.src
  4. 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.

0

No CVSS assessments were provided.

Publisher references

10
  • CVE-2020-36323 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2020-36323
  • CVE-2021-28876 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2021-28876
  • CVE-2021-28878 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2021-28878
  • CVE-2021-28879 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2021-28879
  • CVE-2021-31162 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2021-31162
  • CVE-2020-36323 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-36323
  • CVE-2021-28876 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-28876
  • CVE-2021-28878 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-28878
  • CVE-2021-28879 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-28879
  • CVE-2021-31162 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-31162

Provenance

Schema version
Unknown
Parser version
amazon-alas/1
Severity origin
publisher
Publisher document provenance records
KindLocatorSource commitDocument hashParserFetched
html_pagehttps://alas.aws.amazon.com/AL2/ALAS2-2022-1816.htmlUnknowndcf4535a71547b94475707ee736da3582f6c8f89f226f4c2b9999c6ab1b8ca3bamazon-alas/12026-11-16T08:26:43Z
rss_entryhttps://alas.aws.amazon.com/AL2/ALAS2-2022-1816.htmlUnknownUnknownamazon-alas/12026-11-16T08:26:43Z
catalog_entryhttps://alas.aws.amazon.com/AL2/ALAS2-2022-1816.htmlUnknownUnknownamazon-alas/12026-11-16T08:26:43Z

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected