Advisory

RUSTSEC-2019-0011

Also known as: CVE-2019-15553, GHSA-rh89-x75f-rh3c

Summary

Flaw in offset_of and span_of causes SIGILL, drops uninitialized memory of arbitrary type on panic in client code

Details

Affected versions of this crate caused traps and/or memory unsafety by zero-initializing references.
They also could lead to uninitialized memory being dropped if the field for which the offset is requested was behind a deref coercion, and that deref coercion caused a panic.

The flaw was corrected by using MaybeUninit.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2019-07-16 12:00 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

memoffset

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.5.0 (semver)

Fixed versions

0.5.0

Fix

  • Fixed version 0.5.0
    cargo update -p memoffset --precise 0.5.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