RUSTSEC-2021-0007

    Dashboard / Vulnerabilities / RUSTSEC-2021-0007

    RUSTSEC-2021-0007

    Published: 7 Jan 2021Last Modified: 8 Nov 2023

    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()`.

    Affected packages

    Package

    Name: av-data

    Purl: pkg:cargo/av-data

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0.0.0-0
    Fixed -0.3.0

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    RUSTSEC-2021-0007 | CVE-DB