PT-2019-14842 · Rust · Portaudio-Rs

Phosphorus15

·

Published

2019-09-14

·

Updated

2021-08-25

·

CVE-2019-16881

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions portaudio-rs crate versions through 0.3.1
Description The issue is related to a lack of unwind safety in stream callback and stream finished callback functions, leading to a use-after-free condition that allows for arbitrary code execution. This occurs because the call to a user-provided closure might panic before a mem::forget call, causing a use-after-free that grants an attacker control over the callback function pointer. The flaw was reported by Phosphorus15.
Recommendations For portaudio-rs crate versions through 0.3.1, as a temporary workaround, consider disabling the stream callback and stream finished callback functions until a patch is available. Restrict access to these callback functions to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Use After Free

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2019-16881
GHSA-QPJR-CH72-2QQ4
RUSTSEC-2019-0022

Affected Products

Portaudio-Rs