Lucene search

K
rustsecRustsecRUSTSEC-2021-0033
HistoryFeb 22, 2021 - 12:00 p.m.

push_cloned can drop uninitialized memory or double free on panic

2021-02-2212:00:00
rustsec.org
8

0.002 Low

EPSS

Percentile

60.8%

Affected versions of stack_dst used a push_inner function that increased
the internal length of the array and then called val.clone().

If the val.clone() call panics, the stack could drop an already dropped
element or drop uninitialized memory.

This issue was fixed in 2a4d538 by increasing the length of the array after
elements are cloned.

CPENameOperatorVersion
stack_dstlt0.6.1

0.002 Low

EPSS

Percentile

60.8%

Related for RUSTSEC-2021-0033