VDB
KO
CRITICAL 9.8

GHSA-pqqp-xmhj-wgcw

crossbeam-deque Data Race before v0.7.4 and v0.8.1

Details

### Impact

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.

### Patches

This has been fixed in crossbeam-deque 0.8.1 and 0.7.4.

### Credits

This issue was reported and fixed by Maor Kleinberger.

### License

This advisory is in the public domain.

Are you affected?

Enter the version of the package you're using.

Affected packages

crates.io / crossbeam-deque
Introduced in: 0 Fixed in: 0.7.4

Upgrade crossbeam-deque to 0.7.4 or newer (ecosystem crates.io).

crates.io / crossbeam-deque
Introduced in: 0.8.0 Fixed in: 0.8.1

Upgrade crossbeam-deque to 0.8.1 or newer (ecosystem crates.io).

References