{"id":"CVE-2021-25906","aliases":["CVE-2021-25906","GHSA-fjr6-hm39-4cf9","RUSTSEC-2021-0009"],"related":[],"kind":"vulnerability","state":"published","title":"Double free in basic_dsp_matrix","summary":"An issue was discovered in the basic_dsp_matrix crate before 0.9.2 for Rust. When a TransformContent panic occurs, a double drop can be performed.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the basic_dsp_matrix crate before 0.9.2 for Rust. When a TransformContent panic occurs, a double drop can be performed.","source":"cvelist"},{"lang":"en","text":"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.\n\nThe flaw was corrected in v0.9.2 by using `ManuallyDrop<T>` to enclose objects that are to be temporarily duplicated.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se detectó un problema en la crate basic_dsp_matrix versiones anteriores a 0.9.2 para Rust.&#xa0;Cuando ocurre un pánico de TransformContent, se puede llevar a cabo una doble caída","source":"nvd"}],"published":"2021-01-10T12:00:00.000Z","modified":"2026-06-17T03:42:33.420Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-415"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.9.2"}],"ecosystem":"crates.io","package":"basic_dsp_matrix","purl":"pkg:cargo/basic_dsp_matrix","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.9.2"}],"ecosystem":"crates.io","package":"basic_dsp_matrix","purl":"pkg:cargo/basic_dsp_matrix","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.9.2"}],"vendor":"basic_dsp_matrix_project","product":"basic_dsp_matrix","cpe":"cpe:2.3:a:basic_dsp_matrix_project:basic_dsp_matrix:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0009.html","tags":["advisory","exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25906","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/liebharc/basic_dsp/issues/47","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/liebharc/basic_dsp","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/basic_dsp_matrix","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-25906","url":"https://www.cve.org/CVERecord?id=CVE-2021-25906","licence":"CVE Terms of Use","modified":"2024-08-03T20:11:28.447Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fjr6-hm39-4cf9","url":"https://github.com/advisories/GHSA-fjr6-hm39-4cf9","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:16.857Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2021-0009","url":"https://rustsec.org/advisories/RUSTSEC-2021-0009.html","licence":"CC0-1.0","modified":"2023-11-08T04:05:16.857Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-25906","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25906","licence":"Public domain","modified":"2026-06-17T03:42:33.420Z"}],"updatedAt":"2026-11-25T22:57:59.725Z","epss":{"score":0.01343,"percentile":0.72183,"date":"2026-12-01T12:00:22.000Z"}}