Advisory

RUSTSEC-2022-0067

Also known as: GHSA-5m39-wx2q-mxg3

Summary

Invalid use of mem::uninitialized causes use-of-uninitialized-value

Details

The compression and decompression function used mem:uninitialized
to create an array of uninitialized values, to later write values into it.
This later leads to reads from uninitialized memory.

The flaw was corrected in commit b633bf265e41c60dfce3be7eac4e4dd5e18d06cf
by using a heap-allocated Vec and removing out use of mem::uninitialized.
The fix was released in v0.3.2 and v1.0.0

Subsequently the crate was deprecated and its use is discouraged.

Severity

Not rated by the source.

Dates

Published
2022-10-22 12:00 UTC
Modified
2023-11-08 04:15 UTC

Affected packages and fixes

lzf

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.3.2 (semver)

Fixed versions

0.3.2

Fix

  • Fixed version 0.3.2
    cargo update -p lzf --precise 0.3.2

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