GHSA-gv7f-5qqh-vxfx

Suggest an improvement
Source
https://github.com/advisories/GHSA-gv7f-5qqh-vxfx
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/12/GHSA-gv7f-5qqh-vxfx/GHSA-gv7f-5qqh-vxfx.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gv7f-5qqh-vxfx
Published
2024-12-30T16:52:46Z
Modified
2024-12-30T16:52:46Z
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.

This was patched in by marking two functions as unsafe.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [],
    "severity": "LOW",
    "github_reviewed": true,
    "github_reviewed_at": "2024-12-30T16:52:46Z"
}
References

Affected packages

crates.io / xous

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.9.51