# GHSA-g753-ghr7-q33w: cyfs-base vulnerable to misaligned pointer dereference in `ChunkId::new`

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-06-15T12:00:00.000Z
- Modified: 2023-11-08T04:19:22.223Z
- 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.

(As written by GitHub Advisory Database.)

## Affected

- cyfs-base (crates.io): up to 0.6.12; from 0.0.0-0

## References

- <https://github.com/buckyos/CYFS/issues/275> (report, web)
- <https://github.com/buckyos/CYFS/commit/e030188895096fd8d91d48753877729f4d37dd24> (web)
- <https://github.com/buckyos/CYFS> (package)
- <https://rustsec.org/advisories/RUSTSEC-2023-0046.html> (advisory, web)
- <https://crates.io/crates/cyfs-base> (package)

## Sources

- GitHub Advisory Database: [GHSA-g753-ghr7-q33w](https://github.com/advisories/GHSA-g753-ghr7-q33w), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2023-0046](https://rustsec.org/advisories/RUSTSEC-2023-0046.html), CC0-1.0, modified 2023-11-08

---

Page: https://cve.day/GHSA-g753-ghr7-q33w · Whole record: https://cve.day/GHSA-g753-ghr7-q33w.json · Rebuilt by cve.day 2026-11-25T22:56:43.151Z
