Advisory

RUSTSEC-2024-0431

Also known as: GHSA-gv7f-5qqh-vxfx

Summary

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.

This was patched in by marking two functions as unsafe.

Severity

Not rated by the source.

Dates

Published
2024-12-23 12:00 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

xous

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.9.51 (semver)

Fixed versions

0.9.51

Fix

  • Fixed version 0.9.51
    cargo update -p xous --precise 0.9.51

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences