RUSTSEC-2021-0007

Source
https://rustsec.org/advisories/RUSTSEC-2021-0007
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0007.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2021-0007
Aliases
Published
2021-01-07T12:00:00Z
Modified
2023-11-08T04:05:16.736449Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
`Frame::copy_from_raw_parts` can lead to segfault without `unsafe`
Details

fn Frame::copy_from_raw_parts() is a safe API that can take a raw pointer and dereference it. It is possible to read arbitrary memory address with an arbitrarily fed pointer. This allows the safe API to access & read arbitrary address in memory. Feeding an invalid memory address pointer to the API may also cause the program to segfault.

The flaw was corrected in https://github.com/rust-av/rust-av/pull/137, by removing the API fn Frame::copy_from_raw_parts().

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

Affected packages

crates.io / av-data

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.3.0

Ecosystem specific

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

Database specific

{
    "cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
    "informational": null,
    "categories": [
        "memory-exposure",
        "privilege-escalation"
    ]
}