GHSA-g753-ghr7-q33w
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 package | Versions | Reported by |
|---|---|---|
| cyfs-base (crates.io) | up to 0.6.12, from 0.0.0-0 | GitHub Advisory Database, RustSec Advisory Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-g753-ghr7-q33w changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2023-0046 changed 2023-11-08 | CC0-1.0 |