GHSA-g753-ghr7-q33w

Suggest an improvement
Source
https://github.com/advisories/GHSA-g753-ghr7-q33w
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/06/GHSA-g753-ghr7-q33w/GHSA-g753-ghr7-q33w.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-g753-ghr7-q33w
Aliases
Published
2023-06-22T20:01:55Z
Modified
2023-11-08T04:19:22.223054Z
Summary
cyfs-base vulnerable to misaligned pointer dereference in `ChunkId::new`
Details

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.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-06-22T20:01:55Z"
}
References

Affected packages

crates.io / cyfs-base

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
0.6.12