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

Not scored Published

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

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.

Which versions are affected by GHSA-g753-ghr7-q33w?

3 open source packages ship an affected version, including cyfs-base.

PackageAffectedFixed in
cyfs-base crates.ioAll versions to 0.6.12None
cyfs-base crates.ioAll versions to 0.6.12None
cyfs-base crates.ioFrom 0.0.0-0None

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.

Is GHSA-g753-ghr7-q33w in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free