GHSA-g753-ghr7-q33w
JSON

medium

cyfs-base vulnerable to misaligned pointer dereference in `ChunkId::new`

Severity
medium rating by GitHub
Published
Last changed
Also known as
RUSTSEC-2023-0046

Description

The function ChunkId::new creates a misaligned pointer by casting mutable pointer of u8 slice which has alignment 1 to the mutable pointer of u32 which has alignment 4, and dereference the misaligned pointer leading UB, which should not be allowed in safe function.

Affected

Product or packageVersionsReported by
cyfs-base (crates.io)up to 0.6.12, from 0.0.0-0GitHub Advisory Database, RustSec Advisory Database

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-g753-ghr7-q33w changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2023-0046 changed 2023-11-08CC0-1.0