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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- nvd.nist.gov third-party-advisory vendor-advisory
- rustsec.org patch third-party-advisory vendor-advisory
- github.com issue-tracking
- github.com patch
- github.com
- github.com product
- crates.io product