Skip to content

CVE-2021-28032 Use after free in nano_arena

CriticalCVSS 9.8 EPSS 1.5%
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
crates.io nano_arena(crates.io) < 0.5.2; >= 0.0.0-0, < 0.5.2 0.5.2 Fixed
nano arena project nano arena < 0.5.2 0.5.2 Fixed

Affected products

ProductAffected versionsFixed in
crates.io nano_arena(crates.io) < 0.5.2 0.5.2
crates.io nano_arena(crates.io) >= 0.0.0-0, < 0.5.2 0.5.2
nano arena project nano arena < 0.5.2 0.5.2

References