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.osv.dev/v1/vulns/RUSTSEC-2024-0424
Published
2024-12-19T12:00:00Z
Modified
2024-12-22T09:01:06Z
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": {
        "os": [],
        "functions": [
            "libafl::observers::map::HitcountsMapObserver::post_exec"
        ],
        "arch": []
    }
}

Database specific

{
    "cvss": null,
    "informational": "unsound",
    "categories": []
}