GHSA-pqqp-xmhj-wgcw

Suggest an improvement
Source
https://github.com/advisories/GHSA-pqqp-xmhj-wgcw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-pqqp-xmhj-wgcw/GHSA-pqqp-xmhj-wgcw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-pqqp-xmhj-wgcw
Aliases
Published
2021-08-25T21:01:15Z
Modified
2023-11-01T04:55:31.574454Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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.

References

Affected packages

crates.io / crossbeam-deque

Package

Name
crossbeam-deque
View open source insights on deps.dev
Purl
pkg:cargo/crossbeam-deque

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.7.4

crates.io / crossbeam-deque

Package

Name
crossbeam-deque
View open source insights on deps.dev
Purl
pkg:cargo/crossbeam-deque

Affected ranges

Type
SEMVER
Events
Introduced
0.8.0
Fixed
0.8.1