Advisory

RUSTSEC-2019-0022

Also known as: CVE-2019-16881, GHSA-qpjr-ch72-2qq4

Summary

Stream callback function is not unwind safe

Details

Affected versions of this crate is not panic safe within callback functions stream_callback and stream_finished_callback.

The call to user-provided closure might panic before a mem::forget call, which then causes a use after free that grants attacker to control the callback function pointer.

This allows an attacker to construct an arbitrary code execution .

The flaw was reported by Phosphorus15.

Severity

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

Dates

Published
2019-09-14 12:00 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

portaudio-rs

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.3.2-0 (semver)

Fixed versions

0.3.2-0

Fix

  • Fixed version 0.3.2-0
    cargo update -p portaudio-rs --precise 0.3.2-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