GHSA-g753-ghr7-q33w cyfs-base vulnerable to misaligned pointer dereference in `ChunkId::new`
A misaligned pointer dereference in cyfs-base can cause undefined behavior, potentially leading to crashes or arbitrary code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Not stated
- Victim action needed
- Not needed
- Fix
- None listed
What is GHSA-g753-ghr7-q33w?
GHSA-g753-ghr7-q33w is a memory corruption vulnerability in cyfs-base, published on 15 Jun 2023.
Official description
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.Which versions are affected by GHSA-g753-ghr7-q33w?
3 open source packages ship an affected version, including cyfs-base.
| Package | Affected | Fixed in |
|---|---|---|
cyfs-base crates.io | All versions to 0.6.12 | None |
cyfs-base crates.io | All versions to 0.6.12 | None |
cyfs-base crates.io | From 0.0.0-0 | None |
How do I fix GHSA-g753-ghr7-q33w?
No fix has been published for GHSA-g753-ghr7-q33w yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is GHSA-g753-ghr7-q33w being exploited?
There is no known exploitation of GHSA-g753-ghr7-q33w in the wild and no public exploit code.
Sources
Also known as RUSTSEC-2023-0046.