Advisory

GHSA-qpjr-ch72-2qq4

Also known as: CVE-2019-16881, RUSTSEC-2019-0022

Summary

Use after free in portaudio-rs

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 .

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-08-25 20:45 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

portaudio-rs

crates.io · All systems

Affected

  • introduced 0, fixed 0.3.2 (semver)

Fixed versions

0.3.2

Fix

  • Fixed version 0.3.2
    cargo update -p portaudio-rs --precise 0.3.2

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences