Lucene search

K
rustsecRustsecRUSTSEC-2021-0030
HistoryFeb 18, 2021 - 12:00 p.m.

move_elements can double-free objects on panic

2021-02-1812:00:00
rustsec.org
130

0.002 Low

EPSS

Percentile

60.7%

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.

CPENameOperatorVersion
scratchpadlt1.3.1

0.002 Low

EPSS

Percentile

60.7%

Related for RUSTSEC-2021-0030