نسخههای متأثر
بازهها نیاز به بررسی دارند.
Rust / Cargoscratchpad
- نسخههای متأثر
- >=0.0.0-0 <1.3.1
- نسخهٔ اصلاحشده
- 1.3.1
Rust / Cargoscratchpad
- نسخههای متأثر
- < 1.3.1
- نسخهٔ اصلاحشده
- 1.3.1
بهرهبرداری
شرح آسیبپذیری
Affected versions of scratchpad used ptr::read to read elements while calling a user provided function f on them. Since the pointer read duplicates ownership, a panic inside the user provided f function could cause a double free when unwinding.
The flaw was fixed in commit 891561bea by removing the unsafe block and using a plain iterator.
پیوندها
- https://crates.io/crates/scratchpad
- https://github.com/advisories/GHSA-3qm2-rfqw-fmrw
- https://github.com/okready/scratchpad
- https://github.com/okready/scratchpad/commit/891561bea
- https://github.com/okready/scratchpad/issues/1
- https://nvd.nist.gov/vuln/detail/CVE-2021-28031
- https://rustsec.org/advisories/RUSTSEC-2021-0030.html

