xous has unsound usages of `core::slice::from_raw_parts`
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
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`.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | xous (crates.io) | before 0.9.51 | 0.9.51 | Patch available | GHSA-gv7f-5qqh-vxfx |
- xous (crates.io) Vendor— Affected before 0.9.51 Fixed in 0.9.51 Patch available GHSA-gv7f-5qqh-vxfx
Remediation
- Fix · GHSA-gv7f-5qqh-vxfx xous (crates.io) Fixed in 0.9.51 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-gv7f-5qqh-vxfx
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences