CVE-2021-28877
Alibaba Cloud Linux (Aliyun Linux) vulnerability analysis and mitigation

Overview

CVE-2021-28877 affects the standard library in Rust versions before 1.51.0. The vulnerability is related to the Zip implementation incorrectly calling __iterator_get_unchecked() for the same index multiple times when nested (NVD, Rust PR).

Technical details

The vulnerability stems from a composition error in the TrustedRandomAccess specialization for nested iter::Zips. When a Zip adapter is partially consumed and then wrapped into another Zip where the adapters use their TrustedRandomAccess specializations, it leads to the outer adapter returning elements that should have already been consumed. This occurs due to an unmet safety requirement for the TrustedRandomAccess trait. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability can lead to a memory safety violation, potentially resulting in undefined behavior or program crashes. This could be exploited to cause denial of service conditions in applications using the affected Rust versions (Gentoo Advisory).

Exploitability

The issue requires specific conditions where nested Zip iterators are used with TrustedRandomAccess specializations. The bug had existed for years before being discovered, suggesting that while serious, it may be relatively difficult to trigger in practice (Rust PR).

Mitigation and workarounds

The vulnerability was fixed in Rust version 1.51.0. Users should upgrade to this version or later to address the issue. For Gentoo users specifically, upgrading to rust-1.63.0-r1 or rust-bin-1.64.0 is recommended (Gentoo Advisory).

Additional resources


SourceThis report was generated using AI

Related Alibaba Cloud Linux (Aliyun Linux) vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-44950CRITICAL9.5
  • Rocky Linux logoRocky Linux
  • libXfont-debuginfo
NoYesSep 10, 2026
CVE-2026-59679CRITICAL9.2
  • Rocky Linux logoRocky Linux
  • libXfont2-doc
NoYesSep 10, 2026
CVE-2026-19387HIGH7.6
  • Rocky Linux logoRocky Linux
  • gstreamer1-plugins-bad-free.src
NoYesAug 10, 2026
CVE-2026-14957HIGH7.5
  • Rocky Linux logoRocky Linux
  • libreswan-minimal
NoYesSep 02, 2026
CVE-2026-19389HIGH7.1
  • Rocky Linux logoRocky Linux
  • gstreamer1-plugins-bad-free-libs-debuginfo
NoYesAug 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management