RUSTSEC-2024-0424

Source
https://rustsec.org/advisories/RUSTSEC-2024-0424
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2024-0424.json
JSON Data
https://api.test.osv.dev/v1/vulns/RUSTSEC-2024-0424
Aliases
Published
2024-12-19T12:00:00Z
Modified
2025-10-28T06:29:51.536013Z
Summary
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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / libafl

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.11.2

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "arch": [],
        "os": [],
        "functions": [
            "libafl::observers::map::HitcountsMapObserver::post_exec"
        ]
    }
}

Database specific

cvss

null

categories

[]

informational

"unsound"

source

"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2024-0424.json"