RUSTSEC-2020-0052

Source
https://rustsec.org/advisories/RUSTSEC-2020-0052
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0052.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2020-0052
Aliases
Published
2020-06-26T12:00:00Z
Modified
2023-11-08T04:02:35.713139Z
Summary
Undefined Behavior in bounded channel
Details

The affected version of this crate's the bounded channel incorrectly assumes that Vec::from_iter has allocated capacity that same as the number of iterator elements. Vec::from_iter does not actually guarantee that and may allocate extra memory. The destructor of the bounded channel reconstructs Vec from the raw pointer based on the incorrect assumes described above. This is unsound and causing deallocation with the incorrect capacity when Vec::from_iter has allocated different sizes with the number of iterator elements.

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

Affected packages

crates.io / crossbeam-channel

Package

Name
crossbeam-channel
View open source insights on deps.dev
Purl
pkg:cargo/crossbeam-channel

Affected ranges

Type
SEMVER
Events
Introduced
0.4.3
Fixed
0.4.4

Ecosystem specific

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

Database specific

{
    "cvss": null,
    "informational": null,
    "categories": [
        "memory-corruption"
    ]
}