NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Rust (crates.io)

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

mediumCVSS 4.0 6.9

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.

Published Dec 23, 2024

Affected packages

libafl

Ecosystem
Rust (crates.io)
Affected
< 0.11.2
Fixed in
0.11.2
Check
cargo tree -i libafl

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology