Unratedcrates.ioPublished
xous has unsound usages of core::slice::from_raw_parts
GHSA-gv7f-5qqh-vxfx
- Affected
- crates.io xous < 0.9.51
- Fixed in
- 0.9.51· Vendor fix available
- Issue
- We consider asslice and asslicemut 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 fromparts. We consider that fromparts should be removed in latest version because it will help trigger unsoundness in asslice. With new declared as unsafe, asslice should also declared as unsafe. This was patched in by marking two functions as unsafe.
Recommended action: Upgrade to 0.9.51 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.