RUSTSEC-2021-0093

Data race in crossbeam-deque

Issued
Package
crossbeam-deque (crates.io)
Type
Vulnerability
Categories
  • memory-corruption
Aliases
Details
https://github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-pqqp-xmhj-wgcw
Patched
  • >=0.7.4, <0.8.0
  • >=0.8.1

Description

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.

More