Advisory

GHSA-8fgg-5v78-6g76

Also known as: CVE-2021-28033, RUSTSEC-2021-0032

Summary

Deserializing an array can free uninitialized memory in byte_struct

Details

Byte_struct stack and unpack structure as raw bytes with packed or bit field layout. An issue was discovered in the byte_struct crate before 0.6.1 for Rust. There can be a drop of uninitialized memory if a certain deserialization method panics.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-08-25 20:52 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

byte_struct

crates.io · All systems

Affected

  • introduced 0, fixed 0.6.1 (semver)

Fixed versions

0.6.1

Fix

  • Fixed version 0.6.1
    cargo update -p byte_struct --precise 0.6.1

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences