Read the docs
TI-2024-39119 Aliases GHSA-f7qj-v3vp-4856

libafl has unsound usages of `core::slice::from_raw_parts_mut`

Priority LOW 38Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

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).

Why it matters now

Fix Fixed libafl (crates.io): 0.11.2

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—libafl (crates.io)before 0.11.20.11.2Patch availableGHSA-f7qj-v3vp-4856
  • libafl (crates.io) Vendor— Affected before 0.11.2 Fixed in 0.11.2 Patch available GHSA-f7qj-v3vp-4856

Remediation

  • Fix · GHSA-f7qj-v3vp-4856 libafl (crates.io) Fixed in 0.11.2 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-f7qj-v3vp-4856

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences