GHSA-6888-wf7j-34jq: Crossbeam queue `SegQueue` Creates Zero Value Of Vulnerability
MODERATEGHSA-6888-wf7j-34jq is a MODERATE `segqueue` creates zero value of vulnerability (General Security Weakness) affecting Crossbeam queue libraries in the crates.io ecosystem. The issue involves `segqueue` creates zero value of any type. Remediation is available by upgrading affected packages to version 0.2.3.
GHSA-6888-wf7j-34jq at a Glance
How to Fix GHSA-6888-wf7j-34jq
To remediate this vulnerability, upgrade all affected Crossbeam queue dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade crossbeam-queue to 0.2.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for crossbeam-queue
How to Check if You Are Affected
To determine whether your application is affected by GHSA-6888-wf7j-34jq, inspect your project dependencies for Crossbeam queue:
inspect dependencies for crossbeam-queue
Analyze the terminal output to locate any version of Crossbeam queue in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Crossbeam queue, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-6888-wf7j-34jq Affected Crossbeam queue Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
crossbeam-queue
|
crates.io |
< 0.2.3
|
0.2.3
|
References
Frequently Asked Questions
What is GHSA-6888-wf7j-34jq?
Which Crossbeam queue versions are affected?
What version fixes GHSA-6888-wf7j-34jq?
Is crossbeam-queue affected?
What CWE is associated with GHSA-6888-wf7j-34jq?
How can I check crates.io dependencies for GHSA-6888-wf7j-34jq?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6888-wf7j-34jq",
"modified" : "2022-06-16T23:50:05Z",
"published" : "2022-06-16T23:50:05Z",
"aliases" : [ ],
"summary" : "`SegQueue` creates zero value of any type",
"details" : "Affected versions of this crate called `mem::zeroed()` to create values of a user-supplied type `T`.\nThis is unsound e.g. if `T` is a reference type (which must be non-null).\n \nThe flaw was corrected by avoiding the use of `mem::zeroed()`, using `MaybeUninit` instead.\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "crossbeam-queue"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.2.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/crossbeam-rs/crossbeam/pull/458"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/crossbeam-rs/crossbeam"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2022-0021.html"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-06-16T23:50:05Z",
"nvd_published_at" : null
}
}