{"id":"GHSA-gv7f-5qqh-vxfx","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.  \n\nThis was patched in by marking two functions as `unsafe`.\n","aliases":["RUSTSEC-2024-0431"],"modified":"2025-10-28T06:29:24.841520Z","published":"2024-12-30T16:52:46Z","database_specific":{"github_reviewed_at":"2024-12-30T16:52:46Z","nvd_published_at":null,"cwe_ids":[],"severity":"LOW","github_reviewed":true},"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"}],"affected":[{"package":{"name":"xous","ecosystem":"crates.io","purl":"pkg:cargo/xous"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.9.51"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/12/GHSA-gv7f-5qqh-vxfx/GHSA-gv7f-5qqh-vxfx.json"}}],"schema_version":"1.9.0"}