همهٔ گزارش‌ها
متوسط

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

متن اصلی

نسخه‌های متأثر

Rust / Cargocyfs-base
نسخه‌های متأثر
<= 0.6.12
نسخهٔ اصلاح‌شده
اعلام نشده

شرح آسیب‌پذیری

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.

پیوندها