Advisory

GHSA-f7qj-v3vp-4856

Also known as: RUSTSEC-2024-0424

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

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-12-23 19:28 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

libafl

crates.io · All systems

Affected

  • introduced 0, fixed 0.11.2 (semver)

Fixed versions

0.11.2

Fix

  • Fixed version 0.11.2
    cargo update -p libafl --precise 0.11.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences