{"id":"GHSA-gv7f-5qqh-vxfx","aliases":["RUSTSEC-2024-0431"],"url":"https://o3.security/vulnerability/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","published":"2024-12-30T16:52:46Z","modified":"2025-10-28T06:29:24.841520Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"xous","fixedVersion":"0.9.51"}],"fix":{"url":"https://github.com/betrusted-io/xous-core/pull/411","label":"betrusted-io/xous-core#411"},"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2025-10-28T06:29:24.841520Z"}}