{"id":"GHSA-gv7f-5qqh-vxfx","aliases":["GHSA-gv7f-5qqh-vxfx","RUSTSEC-2024-0431"],"related":[],"kind":"vulnerability","state":"published","title":"xous has unsound usages of `core::slice::from_raw_parts`","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.  \n\nThis was patched in by marking two functions as `unsafe`.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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`.","format":"markdown","source":"ghsa"}],"published":"2024-12-23T12:00:00.000Z","modified":"2025-10-28T06:29:24.841Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"LOW"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"LOW"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.9.51"}],"ecosystem":"crates.io","package":"xous","purl":"pkg:cargo/xous","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.9.51"}],"ecosystem":"crates.io","package":"xous","purl":"pkg:cargo/xous","source":"rustsec"}],"references":[{"url":"https://github.com/betrusted-io/xous-core/issues/410","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/betrusted-io/xous-core/pull/411","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/betrusted-io/xous-core","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2024-0431.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/xous","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gv7f-5qqh-vxfx","url":"https://github.com/advisories/GHSA-gv7f-5qqh-vxfx","licence":"CC-BY-4.0","modified":"2025-10-28T06:29:24.841Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2024-0431","url":"https://rustsec.org/advisories/RUSTSEC-2024-0431.html","licence":"CC0-1.0","modified":"2025-10-28T06:29:24.841Z"}],"updatedAt":"2026-11-25T22:56:43.233Z"}