Advisory

RUSTSEC-2021-0068

Also known as: CVE-2021-38188, GHSA-jjx5-3f36-6927

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.

Severity

Not rated by the source.

Dates

Published
2021-05-19 12:00 UTC
Modified
2023-11-08 04:06 UTC

Affected packages and fixes

iced-x86

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 1.10.4-0 (semver)

Fixed versions

1.10.4-0

Fix

  • Fixed version 1.10.4-0
    cargo update -p iced-x86 --precise 1.10.4-0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences