Vulnerability CVE-2021-28878


Published: 2021-04-11

Description:
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.

 References:
https://github.com/rust-lang/rust/issues/82291
https://github.com/rust-lang/rust/pull/82292

Copyright 2024, cxsecurity.com

 

Back to Top