Skip to content
OpenAdvisories
Critical · 9.8 CVE-2021-28032 EUVD-2021-1918GHSA-wp34-mqw5-jj85RUSTSEC-2021-0031

Use after free in nano_arena

Published Mar 5, 2021 · Updated Aug 3, 2024 · Assigned by mitre

Description

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.

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io nano_arena < 0.5.2 0.5.2 GHSA-wp34-mqw5-jj85
crates.io nano_arena >= 0.0.0-0, < 0.5.2 0.5.2 RUSTSEC-2021-0031

References