Rust advisories / linea
Vulnerability CriticalRUSTSEC-2019-0021 · linea
RUSTSEC-2019-0021: `Matrix::zip_elements` causes double free
Short answerA security vulnerability in the linea crate: `Matrix::zip_elements` causes double free. Critical severity (CVSS 9.8). Fixed in 0.9.5: update to a fixed version.
| Crate | linea |
|---|---|
| Type | Vulnerability (memory-corruption) |
| Affected versions | Before 0.9.5. |
| Fixed in | 0.9.5 |
| Severity | Critical, CVSS 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2019-09-14 |
| Last changed | 2023-11-08 |
| Also known as | CVE-2019-16880, GHSA-j52m-489x-v634 |
What to do
- See which version you have:
cargo tree -i linea(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p linea. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplelinea = "0.9.5") 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 properly implements the Matrix::zip_elements method, which causes an double free when the given trait implementation might panic.
This allows an attacker to corrupt or take control of the memory.
The flaw was corrected by Phosphorus15.
References
- Package: crates.io/crates/linea
- Advisory: rustsec.org/advisories/RUSTSEC-2019-0021.html
- Report: github.com/strake/linea.rs/issues/2
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?