GHSA-jh2g-xhqq-x4w9: Rcu cell Send/Sync Bound Needed On T Vulnerability
MODERATEGHSA-jh2g-xhqq-x4w9 is a MODERATE send/sync bound needed on t vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Rcu cell libraries in the crates.io ecosystem. The issue involves send/sync bound needed on t for send/sync impl of rcucell<t>. Remediation is available by upgrading affected packages to version 0.1.9.
GHSA-jh2g-xhqq-x4w9 at a Glance
How to Fix GHSA-jh2g-xhqq-x4w9
To remediate this vulnerability, upgrade all affected Rcu cell 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 rcu_cell to 0.1.9
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for rcu_cell
How to Check if You Are Affected
To determine whether your application is affected by GHSA-jh2g-xhqq-x4w9, inspect your project dependencies for Rcu cell:
inspect dependencies for rcu_cell
Analyze the terminal output to locate any version of Rcu cell in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.9), 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 CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. In Rcu cell, 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-jh2g-xhqq-x4w9 Affected Rcu cell Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
rcu_cell
|
crates.io |
< 0.1.9
|
0.1.9
|
References
Frequently Asked Questions
What is GHSA-jh2g-xhqq-x4w9?
Which Rcu cell versions are affected?
What version fixes GHSA-jh2g-xhqq-x4w9?
Is rcu_cell affected?
What CWE is associated with GHSA-jh2g-xhqq-x4w9?
How can I check crates.io dependencies for GHSA-jh2g-xhqq-x4w9?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jh2g-xhqq-x4w9",
"modified" : "2021-08-24T17:52:52Z",
"published" : "2021-08-25T21:00:07Z",
"withdrawn" : "2021-08-24T17:52:52Z",
"aliases" : [ ],
"summary" : "Send/Sync bound needed on T for Send/Sync impl of RcuCell<T>",
"details" : "Affected versions of this crate unconditionally implement Send/Sync for `RcuCell<T>`.\nThis allows users to send `T: !Send` to other threads (while `T` enclosed within `RcuCell<T>`), and allows users to concurrently access `T: !Sync` by using the APIs of `RcuCell<T>` that provide access to `&T`.\n\nThis can result in memory corruption caused by data races.\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "rcu_cell"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.1.9"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Xudong-Huang/rcu_cell/issues/3"
}, {
"type" : "WEB",
"url" : "https://github.com/Xudong-Huang/rcu_cell/pull/4/commits/1faf18eee11f14969b77ae0f76dcd9ebd437d0c2"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Xudong-Huang/rcu_cell"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2020-0131.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-362" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-08-06T20:11:31Z",
"nvd_published_at" : null
}
}