Advisory

GHSA-8mjx-h23h-w2pg

Also known as: CVE-2021-28034, CVE-2021-28035, GHSA-45w7-7g63-2m5w, RUSTSEC-2021-0033

Summary

Double free in stack_dst

Details

Affected versions of stack_dst used a push_inner function that increased the internal length of the array and then called val.clone(). If the val.clone() call panics, the stack could drop an already dropped element or drop uninitialized memory. This issue was fixed in 2a4d538 by increasing the length of the array after elements are cloned.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-09-01 18:30 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

stack_dst

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 stack_dst --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