Advisory

RUSTSEC-2021-0007

Also known as: CVE-2021-25904, GHSA-352p-rhvq-7g78

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

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2021-01-07 12:00 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

av-data

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.3.0 (semver)

Fixed versions

0.3.0

Fix

  • Fixed version 0.3.0
    cargo update -p av-data --precise 0.3.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences