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.
References
History
No history.
MITRE Information
Status: PUBLISHED
Assigner: mitre
Published: 2021-04-11T00:00:00
Updated: 2022-10-16T00:00:00
Reserved: 2021-03-19T00:00:00
Link: CVE-2021-28876
JSON object: View
NVD Information
Status : Modified
Published: 2021-04-11T20:15:12.687
Modified: 2023-11-07T03:32:24.040
Link: CVE-2021-28876
JSON object: View
Redhat Information
No data.
CWE