GHSA-jh2g-xhqq-x4w9: Rcu cell Send/Sync Bound Needed On T Vulnerability

MODERATE
CWE-362
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-jh2g-xhqq-x4w9
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Affected Product Rcu cell
Package Ecosystem crates.io
Published Date
Last Updated

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.

rcu_cell fixed: 0.1.9
Upgrade rcu_cell to 0.1.9
Verify Direct and Transitive Dependencies

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

Affected versions of this crate unconditionally implement Send/Sync for `RcuCell<T>`. This 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`. This can result in memory corruption caused by data races.

GHSA-jh2g-xhqq-x4w9 Affected Rcu cell Versions

1 component(s)
Fixed Versions:
0.1.9
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?
GHSA-jh2g-xhqq-x4w9 is a security vulnerability in Rcu cell involving Send/Sync bound needed on T for Send/Sync impl of RcuCell<T> under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition').
Which Rcu cell versions are affected?
Affected versions include releases prior to 0.1.9 across affected packages: rcu_cell.
What version fixes GHSA-jh2g-xhqq-x4w9?
Upgrading to 0.1.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rcu_cell affected?
Yes, rcu_cell is affected in releases prior to 0.1.9. Upgrade your dependency to 0.1.9 or later.
What CWE is associated with GHSA-jh2g-xhqq-x4w9?
GHSA-jh2g-xhqq-x4w9 is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') (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.).
How can I check crates.io dependencies for GHSA-jh2g-xhqq-x4w9?
Run the dependency tree command: 'inspect dependencies for rcu_cell'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}