GHSA-gv7f-5qqh-vxfx: xous has unsound usages of `core :slice::from_raw_parts` Vulnerability

LOW
Published
Advisory Summary

GHSA-gv7f-5qqh-vxfx is a LOW :slice::from_raw_parts` vulnerability (General Security Weakness) affecting xous has unsound usages of `core libraries in the crates.io ecosystem. The issue involves :slice::from_raw_parts`. Remediation is available by upgrading affected packages to version 0.9.51.

GHSA-gv7f-5qqh-vxfx at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-gv7f-5qqh-vxfx
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product xous has unsound usages of `core
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-gv7f-5qqh-vxfx

To remediate this vulnerability, upgrade all affected xous has unsound usages of `core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

xous fixed: 0.9.51
Upgrade xous to 0.9.51
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 xous

How to Check if You Are Affected

To determine whether your application is affected by GHSA-gv7f-5qqh-vxfx, inspect your project dependencies for xous has unsound usages of `core:

inspect dependencies for xous

Analyze the terminal output to locate any version of xous has unsound usages of `core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.9.51), 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 xous has unsound usages of `core, 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

We consider `as_slice` and `as_slice_mut` unsound because: the pointer with any bit patterns could be cast to the slice of arbitrary types. The pointer could be created by unsafe new and deprecated `from_parts`. We consider that `from_parts` should be removed in latest version because it will help trigger unsoundness in `as_slice`. With new declared as unsafe, `as_slice` should also declared as unsafe. This was patched in by marking two functions as `unsafe`.

GHSA-gv7f-5qqh-vxfx Affected xous has unsound usages of `core Versions

1 component(s)
Fixed Versions:
0.9.51
Product / Package Ecosystem Affected Versions Fixed Version
xous
crates.io
< 0.9.51
0.9.51

References

Frequently Asked Questions

What is GHSA-gv7f-5qqh-vxfx?
GHSA-gv7f-5qqh-vxfx is a security vulnerability in xous has unsound usages of `core involving :slice::from_raw_parts` under General Security Weakness.
Which xous has unsound usages of `core versions are affected?
Affected versions include releases prior to 0.9.51 across affected packages: xous.
What version fixes GHSA-gv7f-5qqh-vxfx?
Upgrading to 0.9.51 (or the latest patched release for your respective branch) resolves the vulnerability.
Is xous affected?
Yes, xous is affected in releases prior to 0.9.51. Upgrade your dependency to 0.9.51 or later.
What CWE is associated with GHSA-gv7f-5qqh-vxfx?
GHSA-gv7f-5qqh-vxfx is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-gv7f-5qqh-vxfx?
Run the dependency tree command: 'inspect dependencies for xous'. 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-gv7f-5qqh-vxfx",
  "modified" : "2024-12-30T16:52:46Z",
  "published" : "2024-12-30T16:52:46Z",
  "aliases" : [ ],
  "summary" : "xous has unsound usages of `core::slice::from_raw_parts` ",
  "details" : "We consider `as_slice` and `as_slice_mut` unsound because: the pointer with any bit patterns could be cast to the slice of arbitrary types. The pointer could be created by unsafe new and deprecated `from_parts`. We consider that `from_parts` should be removed in latest version because it will help trigger unsoundness in `as_slice`. With new declared as unsafe, `as_slice` should also declared as unsafe.  \n\nThis was patched in by marking two functions as `unsafe`.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "xous"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.9.51"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/betrusted-io/xous-core/issues/410"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/betrusted-io/xous-core/pull/411"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/betrusted-io/xous-core"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2024-0431.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-12-30T16:52:46Z",
    "nvd_published_at" : null
  }
}