CVE-2021-32810CWE-362

Data race in crossbeam-deque

Critical · published August 2, 2021

CVSS v3.1
9.8
EPSS
2%
Percentile
79.6
In the wild
Unconfirmed
What it is

🔥 A sneaky race condition in crossbeam-deque can cause tasks to get popped from the queue not once, but twice! Think of it as a kitchen where the chef mistakenly serves the same dish to the diner twice while forgetting to serve other orders—this can lead to chaos and wasted ingredients! This flaw can lead to double free errors and memory leaks, potentially crashing your application or causing unpredictable behavior in task scheduling. Imagine your program mismanaging tasks, leaving some hanging in limbo while others get processed twice—absolutely devastating for any production environment!

Put simply

Think of it as a kitchen where the chef mistakenly serves the same dish to the diner twice while forgetting to serve other orders—this can lead to chaos and wasted ingredients! This vulnerability occurs due to a race condition in the task-stealing mechanism of crossbeam-deque versions prior to 0.8.1 and 0.7.4, allowing tasks to be popped multiple times, which can lead to logical errors or resource mismanagement.

What to do

This flaw can lead to double free errors and memory leaks, potentially crashing your application or causing unpredictable behavior in task scheduling. Imagine your program mismanaging tasks, leaving some hanging in limbo while others get processed twice—absolutely devastating for any production environment! To secure your application, upgrade to crossbeam-deque version 0.8.1 or 0.7.4 immediately. Make sure to review your code for any affected methods like `Stealer::steal`, `Stealer::steal_batch`, or `Stealer::steal_batch_and_pop` to prevent logical bugs. Don't forget to test thoroughly after the update! You've got this! With these updates, you'll have your application running smoothly and securely. 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01907 · 79.6th percentile
Weakness
CWE-362 · Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Published
2021-08-02T18:35Z
EPSS history
Timeline
  • 02 AUG 18:35Z
    Data race in crossbeam-deque
    cvelistv5