GHSA-F7QJ-V3VP-4856
Vulnerability from github – Published: 2024-12-23 19:28 – Updated: 2024-12-23 19:30
VLAI?
Summary
libafl has unsound usages of `core::slice::from_raw_parts_mut`
Details
The library breaks the safety assumptions when using unsafe API slice::from_raw_parts_mut. The pointer passed to from_raw_parts_mut is misaligned by casting u8 to u16 raw pointer directly, which is unsound. The bug is patched by using align_offset, which could make sure the memory address is aligned to 2 bytes for u16.
This was patched in 0.11.2 in the commit.
Severity ?
{
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "libafl"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.11.2"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [],
"github_reviewed": true,
"github_reviewed_at": "2024-12-23T19:28:19Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"details": "The library breaks the safety assumptions when using unsafe API `slice::from_raw_parts_mut`. The pointer passed to `from_raw_parts_mut` is misaligned by casting `u8` to `u16` raw pointer directly, which is unsound. The bug is patched by using `align_offset`, which could make sure the memory address is aligned to 2 bytes for `u16`. \n\nThis was patched in 0.11.2 in the [commit](https://github.com/AFLplusplus/LibAFL/pull/1530/commits/5a60cb31ef587d71d09d534bba39bd3973c4b35d).\n",
"id": "GHSA-f7qj-v3vp-4856",
"modified": "2024-12-23T19:30:20Z",
"published": "2024-12-23T19:28:19Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/AFLplusplus/LibAFL/issues/1526"
},
{
"type": "WEB",
"url": "https://github.com/AFLplusplus/LibAFL/pull/1530"
},
{
"type": "WEB",
"url": "https://github.com/AFLplusplus/LibAFL/pull/1530/commits/5a60cb31ef587d71d09d534bba39bd3973c4b35d"
},
{
"type": "WEB",
"url": "https://github.com/AFLplusplus/LibAFL/commit/f70a16a09a8096d3c50159dd8a912a75c2af157c"
},
{
"type": "PACKAGE",
"url": "https://github.com/AFLplusplus/LibAFL"
},
{
"type": "WEB",
"url": "https://rustsec.org/advisories/RUSTSEC-2024-0424.html"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N",
"type": "CVSS_V4"
}
],
"summary": "libafl has unsound usages of `core::slice::from_raw_parts_mut` "
}
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…