GHSA-f7qj-v3vp-4856 – libafl
Package
Manager: cargo
Name: libafl
Vulnerable Version: >=0 <0.11.2
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N/E:P/RL:O/RC:R
CVSS v4.0: 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
EPSS: N/A pctlN/A
Details
libafl has unsound usages of `core::slice::from_raw_parts_mut` 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](https://github.com/AFLplusplus/LibAFL/pull/1530/commits/5a60cb31ef587d71d09d534bba39bd3973c4b35d).
Metadata
Created: 2024-12-23T19:28:19Z
Modified: 2024-12-23T19:30:20Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/12/GHSA-f7qj-v3vp-4856/GHSA-f7qj-v3vp-4856.json
CWE IDs: []
Alternative ID: N/A
Finding: F138
Auto approve: 1