n/a · Vulnerability
cve-program · CVE-2018-20991
PublishedAn issue was discovered in the smallvec crate before 0.6.3 for Rust. The Iterator implementation mishandles destructors, leading to a double free.
Read the publisher's advisoryeuvd · EUVD-2021-1878
PublishedAn issue was discovered in the smallvec crate before 0.6.3 for Rust. The Iterator implementation mishandles destructors, leading to a double free.
Read the publisher's advisorynvd · CVE-2018-20991
PublishedAn issue was discovered in the smallvec crate before 0.6.3 for Rust. The Iterator implementation mishandles destructors, leading to a double free.
Read the publisher's advisoryosv · GHSA-rxr4-x558-x7hw
PublishedIf an iterator passed to SmallVec::insert_many panicked in Iterator::next, destructors were run during unwinding while the vector was in an inconsistent state, possibly causing a double free (a destructor running on two copies of the same value). This is fixed in smallvec 0.6.3 by ensuring that the vector's length is not updated to include moved items until they have been removed from their original positions. Items may now be leaked if Iterator::next panics, but they will not be dropped more than once.
Read the publisher's advisoryosv · RUSTSEC-2018-0003
PublishedIf an iterator passed to `SmallVec::insert_many` panicked in `Iterator::next`, destructors were run during unwinding while the vector was in an inconsistent state, possibly causing a double free (a destructor running on two copies of the same value). This is fixed in smallvec 0.6.3 by ensuring that the vector's length is not updated to include moved items until they have been removed from their original positions. Items may now be leaked if `Iterator::next` panics, but they will not be dropped more than once. Thank you to [@Vurich](https://github.com/Vurich) for reporting this bug.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2018-20991 · CVE overview and exploitation status
cve-program · CVE-2018-20991
euvd · EUVD-2021-1878
nvd · CVE-2018-20991
osv · GHSA-rxr4-x558-x7hw
- https://nvd.nist.gov/vuln/detail/CVE-2018-20991
- https://github.com/servo/rust-smallvec/issues/96
- https://github.com/servo/rust-smallvec
- https://rustsec.org/advisories/RUSTSEC-2018-0003.html
osv · RUSTSEC-2018-0003
Related changes
Linked by CVE identifierNo related changes are available here.