Medium, CVSS 6.9crates.ioPublished
libafl has unsound usages of core::slice::from_raw_parts_mut
GHSA-f7qj-v3vp-4856
- Affected
- crates.io libafl < 0.11.2
- Fixed in
- 0.11.2· Vendor fix available
- Issue
- The library breaks the safety assumptions when using unsafe API slice::fromrawpartsmut. The pointer passed to fromrawpartsmut is misaligned by casting u8 to u16 raw pointer directly, which is unsound. The bug is patched by using alignoffset, which could make sure the memory address is aligned to 2 bytes for u16. This was patched in 0.11.2 in the commit.
Recommended action: Upgrade to 0.11.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.