GHSA-gv7f-5qqh-vxfx
low
xous has unsound usages of `core::slice::from_raw_parts`
- Severity
- low rating by GitHub
- Published
- Last changed
- Also known as
- RUSTSEC-2024-0431
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| xous (crates.io) | before 0.9.51, from 0.0.0-0 before 0.9.51 | GitHub Advisory Database, RustSec Advisory Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-gv7f-5qqh-vxfx changed 2025-10-28 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2024-0431 changed 2025-10-28 | CC0-1.0 |