Advisory

RUSTSEC-2021-0093

Also known as: CVE-2021-32810, GHSA-pqqp-xmhj-wgcw

Summary

Data race in crossbeam-deque

Details

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.

Credits to @kmaork for discovering, reporting and fixing the bug.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2021-07-30 12:00 UTC
Modified
2026-10-12 18:00 UTC

Affected packages and fixes

crossbeam-deque

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.7.4, introduced 0.8.0, fixed 0.8.1 (semver)

Fixed versions

0.7.4, 0.8.1

Fix

  • Fixed version 0.7.4
    cargo update -p crossbeam-deque --precise 0.7.4
  • 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: RustSec Advisory Database · CC0-1.0

Sources & licences