Lucene search

K
osvGoogleOSV:GHSA-3QM2-RFQW-FMRW
HistoryMay 24, 2022 - 5:43 p.m.

move_elements can double-free objects on panic

2022-05-2417:43:48
Google
osv.dev
5

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 OSV:GHSA-3QM2-RFQW-FMRW