GHSA-GV7F-5QQH-VXFX
Vulnerability from github – Published: 2024-12-30 16:52 – Updated: 2024-12-30 16:52
VLAI?
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.
This was patched in by marking two functions as unsafe.
{
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "xous"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.9.51"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [],
"github_reviewed": true,
"github_reviewed_at": "2024-12-30T16:52:46Z",
"nvd_published_at": null,
"severity": "LOW"
},
"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",
"id": "GHSA-gv7f-5qqh-vxfx",
"modified": "2024-12-30T16:52:46Z",
"published": "2024-12-30T16:52:46Z",
"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"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "xous has unsound usages of `core::slice::from_raw_parts` "
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…