Vulnerability
CVE-2021-28032
An issue was discovered in the nano_arena crate before 0.5.2 for Rust. There is an aliasing violation in split_at because two mutable references can exist for the same element, if Borrow<Idx> behaves in certain ways. This can have a resultant out-of-bounds write or use-after-free.
2 advisories report this vulnerability, across 1 ecosystem.
Advisories
-
GHSA-wp34-mqw5-jj85
Use after free in nano_arena
-
RUSTSEC-2021-0031
split_at allows obtaining multiple mutable references to the same data