Race Condition Affecting rust-crossbeam-deque package, versions *


Severity

Recommended
low

Based on Debian security rating.

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-DEBIAN10-RUSTCROSSBEAMDEQUE-1570688
  • published28 Aug 2021
  • disclosed2 Aug 2021

Introduced: 2 Aug 2021

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

How to fix?

There is no fixed version for Debian:10 rust-crossbeam-deque.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rust-crossbeam-deque package and not the rust-crossbeam-deque package as distributed by Debian. See How to fix? for Debian:10 relevant fixed versions and status.

crossbeam-deque is a package of work-stealing deques for building task schedulers when programming in Rust. In versions prior to 0.7.4 and 0.8.0, 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. This has been fixed in crossbeam-deque 0.8.1 and 0.7.4.

References

CVSS Base Scores

version 3.1