RUSTSEC-2021-0068

Source
https://rustsec.org/advisories/RUSTSEC-2021-0068
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0068.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2021-0068
Aliases
Published
2021-05-19T12:00:00Z
Modified
2023-11-08T04:06:25.737471Z
Summary
Soundness issue in `iced-x86` versions <= 1.10.3
Details

Versions of iced-x86 <= 1.10.3 invoke undefined behavior which may cause soundness issues in crates using the iced_x86::Decoder struct. The Decoder::new() function made a call to slice.get_unchecked(slice.length()) to get the end position of the input buffer. The flaw was fixed with safe logic that does not invoke undefined behavior.

More details can be found at https://github.com/icedland/iced/issues/168.

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

Affected packages

crates.io / iced-x86

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
1.10.4-0

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [
            "iced_x86::Decoder::new"
        ],
        "arch": []
    }
}

Database specific

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