GHSA-gv7f-5qqh-vxfx
xous has unsound usages of `core::slice::from_raw_parts`
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.
What each source reports
GitHub AdvisoriesNo score
xous has unsound usages of `core::slice::from_raw_parts`
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.
- Record
GHSA-gv7f-5qqh-vxfx- Updated
- 2026-11-02
OSVNo score
xous has unsound usages of `core::slice::from_raw_parts`
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.
- Record
GHSA-gv7f-5qqh-vxfx- Updated
- 2026-11-02
OSVRUSTSEC-2024-0431No score
Unsound usages of `core::slice::from_raw_parts`
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.
- Record
RUSTSEC-2024-0431- Updated
- 2026-11-02
Affected packages
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | GitHub Advisories, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
GHSA-gv7f-5qqh-vxfx is a vulnerability with no CVSS score yet in xous, published December 23, 2024. No source lists public exploit code. Fixed in xous 0.9.51.