PT-2021-4464 · Crates.Io+9 · Crossbeam-Deque+9

Maor Kleinberger

·

Published

2021-07-30

·

Updated

2024-12-12

·

CVE-2021-32810

CVSS v2.0

10

Critical

VectorAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions crossbeam-deque versions prior to 0.7.4 and 0.8.0
Description The issue is caused by a race condition that can result in one or more tasks in the worker queue being 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.
Recommendations For crossbeam-deque versions prior to 0.7.4, update to version 0.7.4 or later. For crossbeam-deque versions prior to 0.8.0, update to version 0.8.1 or later. As a temporary workaround, consider restricting the use of Stealer::steal, Stealer::steal batch, and Stealer::steal batch and pop until a patch is available.

Exploit

Fix

Use After Free

Race Condition

Buffer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2021-2981
ALT-PU-2021-3005
ALT-PU-2021-3026
ALT-PU-2021-3069
ALT-PU-2021-3097
ALT-PU-2021-3118
ALT-PU-2021-3368
ALT-PU-2021-3370
ALT-PU-2022-1782
ALT-PU-2022-1783
BDU:2021-05095
BDU:2021-05096
BDU:2021-05097
CESA-2021_3755
CESA-2021_3791
CESA-2021_3838
CESA-2021_3841
CVE-2021-32810
GHSA-PQQP-XMHJ-WGCW
MGASA-2021-0469
MGASA-2021-0478
OESA-2023-1673
OESA-2023-1674
OPENSUSE-SU-2021:1367-1
OPENSUSE-SU-2021:1635-1
OPENSUSE-SU-2021:3331-1
OPENSUSE-SU-2021:3451-1
OPENSUSE-SU-2021:4150-1
OPENSUSE-SU-2021_1367-1
OPENSUSE-SU-2021_1635-1
OPENSUSE-SU-2021_3331-1
OPENSUSE-SU-2021_3451-1
OPENSUSE-SU-2021_4150-1
OPENSUSE-SU-2024:11570-1
OPENSUSE-SU-2024:11571-1
OPENSUSE-SU-2024:14572-1
RHSA-2021:3755
RHSA-2021:3756
RHSA-2021:3757
RHSA-2021:3791
RHSA-2021:3838
RHSA-2021:3839
RHSA-2021:3840
RHSA-2021:3841
RHSA-2021_3755
RHSA-2021_3791
RHSA-2021_3838
RHSA-2021_3841
RLSA-2021:3755
RLSA-2021:3838
RUSTSEC-2021-0093
SUSE-SU-2021:14826-1
SUSE-SU-2021:3331-1
SUSE-SU-2021:3446-1
SUSE-SU-2021:3451-1
SUSE-SU-2021:4150-1
SUSE-SU-2021_14826-1
SUSE-SU-2021_3446-1
USN-5107-1
USN-5132-1

Affected Products

Alt Linux
Astra Linux
Centos
Debian
Linuxmint
Red Hat
Rocky Linux
Suse
Ubuntu
Crossbeam-Deque