GHSA-G753-GHR7-Q33W
Vulnerability from github – Published: 2023-06-22 20:01 – Updated: 2023-06-22 20:01
VLAI?
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.
{
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "cyfs-base"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "0.6.12"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [],
"github_reviewed": true,
"github_reviewed_at": "2023-06-22T20:01:55Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"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.\n",
"id": "GHSA-g753-ghr7-q33w",
"modified": "2023-06-22T20:01:55Z",
"published": "2023-06-22T20:01:55Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/buckyos/CYFS/issues/275"
},
{
"type": "WEB",
"url": "https://github.com/buckyos/CYFS/commit/e030188895096fd8d91d48753877729f4d37dd24"
},
{
"type": "PACKAGE",
"url": "https://github.com/buckyos/CYFS"
},
{
"type": "WEB",
"url": "https://rustsec.org/advisories/RUSTSEC-2023-0046.html"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "cyfs-base vulnerable to misaligned pointer dereference in `ChunkId::new`"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…