Skip to content

CVE-2021-28031 move_elements can double-free objects on panic

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

Description

An issue was discovered in the scratchpad crate before 1.3.1 for Rust. The move_elements function can have a double-free upon a panic in a user-provided f function.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
crates.io scratchpad(crates.io) < 1.3.1; >= 0.0.0-0, < 1.3.1 1.3.1 Fixed
scratchpad project scratchpad < 1.3.1 1.3.1 Fixed

Affected products

ProductAffected versionsFixed in
crates.io scratchpad(crates.io) < 1.3.1 1.3.1
crates.io scratchpad(crates.io) >= 0.0.0-0, < 1.3.1 1.3.1
scratchpad project scratchpad < 1.3.1 1.3.1

References