Lucene search

K
rustsecRustsecRUSTSEC-2021-0047
HistoryFeb 19, 2021 - 12:00 p.m.

SliceDeque::drain_filter can double drop an element if the predicate panics

2021-02-1912:00:00
rustsec.org
8
slicedeque
drain_filter
vulnerability
double drops
elements
software

EPSS

0.001

Percentile

46.4%

Affected versions of the crate incremented the current index of the drain filter
iterator before calling the predicate function self.pred.

If the predicate function panics, it is possible for the last element in the
iterator to be dropped twice.

EPSS

0.001

Percentile

46.4%

Related for RUSTSEC-2021-0047