GHSA-g753-ghr7-q33w cyfs-base vulnerable to misaligned pointer dereference in `ChunkId::new`
Unknown
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
1 package: 0 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io cyfs-base(crates.io) | <= 0.6.12; >= 0.0.0-0 | after 0.6.12 | Partially fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io cyfs-base(crates.io) | <= 0.6.12 | No fix listed |
| crates.io cyfs-base(crates.io) | >= 0.0.0-0 | No fix listed |
References
- github.com issue-tracking
- github.com patch
- rustsec.org vendor-advisory
- github.com
- github.com product
- crates.io product