Description d’origine
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.
Logiciels concernés
- Rust < 1.52.0 Corrigé dans: 1.52.0 correspondance exacte
Détails
- Publication
- 2021-04-11
- Dernière modification
- 2026-06-17
- Vecteur CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- CWE
- CWE-119
- EPSS (probabilité d’exploitation à 30 jours)
- 2.00% (percentile 81)
Références
- cve.org/CVE-2021-28878
- nvd.nist.gov/vuln/detail/CVE-2021-28878
- github.com/rust-lang/rust/issues/82291
- github.com/rust-lang/rust/pull/82292
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/T...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V...
- security.gentoo.org/glsa/202210-09
Suivez ces versions sur vos propres serveurs
InfraGuard collecte les versions logicielles installées sur chaque serveur et signale celles qui présentent des vulnérabilités connues. Auto-hébergé : rien ne quitte votre réseau.
Ce produit utilise des données de l’API du NVD, mais n’est ni approuvé ni certifié par le NVD. CVE® est une marque déposée de The MITRE Corporation ; les enregistrements CVE sont utilisés conformément aux conditions d’utilisation du CVE Program.