Files
advisory-db/crates/multiqueue2/RUSTSEC-2020-0106.md
2021-10-19 16:14:35 -06:00

862 B

[advisory]
id = "RUSTSEC-2020-0106"
package = "multiqueue2"
aliases = ["CVE-2020-36214"]
cvss = "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
date = "2020-12-19"
url = "https://github.com/abbychau/multiqueue2/issues/10"
categories = ["memory-corruption", "thread-safety"]
informational = "unsound"

[versions]
patched = [">= 0.1.7"]

Queues allow non-Send types to be sent to other threads, allowing data races

Affected versions of this crate unconditionally implemented Send for types used in queue implementations (InnerSend<RW, T>, InnerRecv<RW, T>, FutInnerSend<RW, T>, FutInnerRecv<RW, T>).

This allows users to send non-Send types to other threads, which can lead to data race bugs or other undefined behavior.

The flaw was corrected in v0.1.7 by adding T: Send bound to to the Send impl of four data types explained above.