Advisory

RUSTSEC-2021-0009

Also known as: CVE-2021-25906, GHSA-fjr6-hm39-4cf9

Summary

panic safety issue in impl TransformContent<S, D> for [S; (2|3|4)]

Details

Affected versions of this crate did not guard against double drop while temporarily duplicating objects' ownership using ptr::read(). Upon panic in a user-provided function conversion, objects that are copied by ptr::read() are dropped twice, leading to memory corruption.

The flaw was corrected in v0.9.2 by using ManuallyDrop<T> to enclose objects that are to be temporarily duplicated.

Severity

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

Dates

Published
2021-01-10 12:00 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

basic_dsp_matrix

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.9.2 (semver)

Fixed versions

0.9.2

Fix

  • Fixed version 0.9.2
    cargo update -p basic_dsp_matrix --precise 0.9.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