Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. libafl
  4. ›
  5. GHSA-f7qj-v3vp-4856

GHSA-f7qj-v3vp-4856: libafl has unsound usages of `core::slice::from_raw_parts_mut`

December 23, 2024

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.

References

  • github.com/AFLplusplus/LibAFL
  • github.com/AFLplusplus/LibAFL/commit/f70a16a09a8096d3c50159dd8a912a75c2af157c
  • github.com/AFLplusplus/LibAFL/issues/1526
  • github.com/AFLplusplus/LibAFL/pull/1530
  • github.com/AFLplusplus/LibAFL/pull/1530/commits/5a60cb31ef587d71d09d534bba39bd3973c4b35d
  • github.com/advisories/GHSA-f7qj-v3vp-4856
  • rustsec.org/advisories/RUSTSEC-2024-0424.html

Code Behaviors & Features

Detect and mitigate GHSA-f7qj-v3vp-4856 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.11.2

Fixed versions

  • 0.11.2

Solution

Upgrade to version 0.11.2 or above.

Source file

cargo/libafl/GHSA-f7qj-v3vp-4856.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 12 May 2025 12:14:33 +0000.