Race Condition Affecting crossbeam-deque package, versions >=0.8.0 <0.8.1<0.7.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.15% (85th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-CROSSBEAMDEQUE-1535810
  • published3 Aug 2021
  • disclosed3 Aug 2021
  • creditMaor Kleinberger

Introduced: 3 Aug 2021

CVE-2021-32810  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade crossbeam-deque to version 0.8.1, 0.7.4 or higher.

Overview

crossbeam-deque is a concurrent work-stealing deque.

Affected versions of this package are vulnerable to Race Condition. This can cause one or more tasks in the worker queue to 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.

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

CVSS Scores

version 3.1