Skip to content
OpenAdvisories
Medium GHSA-g753-ghr7-q33w RUSTSEC-2023-0046

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

Published Jun 22, 2023 · Updated Nov 8, 2023 · Assigned by GHSA

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 packages

EcosystemPackageAffectedFixedRecord
crates.io cyfs-base <= 0.6.12 — GHSA-g753-ghr7-q33w
crates.io cyfs-base >= 0.0.0-0 — RUSTSEC-2023-0046

References