Rust advisories / basic_dsp_matrix
Vulnerability HighRUSTSEC-2021-0009 · basic_dsp_matrix
RUSTSEC-2021-0009: panic safety issue in `impl TransformContent<S, D> for [S; (2|3|4)]`
Short answerA security vulnerability in the basic_dsp_matrix crate: panic safety issue in `impl TransformContent<S, D> for [S; (2|3|4)]`. High severity (CVSS 7.5). Fixed in 0.9.2: update to a fixed version.
| Crate | basic_dsp_matrix |
|---|---|
| Type | Vulnerability (memory-corruption) |
| Affected versions | Before 0.9.2. |
| Fixed in | 0.9.2 |
| Severity | High, CVSS 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2021-01-10 |
| Last changed | 2023-11-08 |
| Also known as | CVE-2021-25906, GHSA-fjr6-hm39-4cf9 |
What to do
- See which version you have:
cargo tree -i basic_dsp_matrix(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p basic_dsp_matrix. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplebasic_dsp_matrix = "0.9.2") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
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.
References
- Package: crates.io/crates/basic_dsp_matrix
- Advisory: rustsec.org/advisories/RUSTSEC-2021-0009.html
- Report: github.com/liebharc/basic_dsp/issues/47
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?