Advisory

GHSA-g753-ghr7-q33w

Also known as: RUSTSEC-2023-0046

Summary

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

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-06-22 20:01 UTC
Modified
2023-11-08 04:19 UTC

Affected packages and fixes

cyfs-base

crates.io · All systems

Affected

  • introduced 0, last affected 0.6.12 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences