GHSA-gv7f-5qqh-vxfx: xous has unsound usages of `core :slice::from_raw_parts` Vulnerability
LOWGHSA-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
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.
Upgrade xous to 0.9.51
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
GHSA-gv7f-5qqh-vxfx Affected xous has unsound usages of `core Versions
1 component(s)| 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?
Which xous has unsound usages of `core versions are affected?
What version fixes GHSA-gv7f-5qqh-vxfx?
Is xous affected?
What CWE is associated with GHSA-gv7f-5qqh-vxfx?
How can I check crates.io dependencies for GHSA-gv7f-5qqh-vxfx?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}