Advisory

GHSA-pqqp-xmhj-wgcw

Also known as: CVE-2021-32810, RUSTSEC-2021-0093

Summary

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-08-25 21:01 UTC
Modified
2026-07-08 06:28 UTC

Affected packages and fixes

crossbeam-deque

crates.io · All systems

Affected

  • introduced 0, fixed 0.7.4 (semver)

Fixed versions

0.7.4

Fix

  • Fixed version 0.7.4
    cargo update -p crossbeam-deque --precise 0.7.4

crossbeam-deque

crates.io · All systems

Affected

  • introduced 0.8.0, fixed 0.8.1 (semver)

Fixed versions

0.8.1

Fix

  • Fixed version 0.8.1
    cargo update -p crossbeam-deque --precise 0.8.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences