Lucene search

K
osvGoogleOSV:RUSTSEC-2021-0093
HistoryJul 30, 2021 - 12:00 p.m.

Data race in crossbeam-deque

2021-07-3012:00:00
Google
osv.dev
18
data race
crossbeam-deque
race condition
worker queue
memory leak
logical bug
stealer::steal
stealer::steal_batch
stealer::steal_batch_and_pop
bug discovery
bug reporting

EPSS

0.009

Percentile

82.7%

In the affected version of this crate, the result of the race condition is that one or more tasks in the worker queue can be popped twice instead of other tasks that are forgotten and never popped. If tasks are allocated on the heap, this can cause double free and a memory leak. If not, this still can cause a logical bug.

Crates using Stealer::steal, Stealer::steal_batch, or Stealer::steal_batch_and_pop are affected by this issue.

Credits to @kmaork for discovering, reporting and fixing the bug.