RUSTSEC-2019-0009

Source
https://rustsec.org/advisories/RUSTSEC-2019-0009
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2019-0009.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2019-0009
Aliases
Published
2019-06-06T12:00:00Z
Modified
2023-11-08T04:01:14.162214Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Double-free and use-after-free in SmallVec::grow()
Details

Attempting to call grow on a spilled SmallVec with a value equal to the current capacity causes it to free the existing data. This performs a double free immediately and may lead to use-after-free on subsequent accesses to the SmallVec contents.

An attacker that controls the value passed to grow may exploit this flaw to obtain memory contents or gain remote code execution.

Credits to @ehuss for discovering, reporting and fixing the bug.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / smallvec

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.6.5
Fixed
0.6.10

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [
            "smallvec::SmallVec::grow"
        ],
        "arch": []
    }
}

Database specific

{
    "cvss": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
    "informational": null,
    "categories": []
}