CVE-2019-16881
JSON

9.8critical

Use after free in portaudio-rs

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
2.51% (higher than 85% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-qpjr-ch72-2qq4RUSTSEC-2019-0022

Description

An issue was discovered in the portaudio-rs crate through 0.3.1 for Rust. There is a use-after-free with resultant arbitrary code execution because of a lack of unwind safety in stream_callback and stream_finished_callback.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
portaudio-rs (crates.io)before 0.3.2, from 0.0.0-0 before 0.3.2-0GitHub Advisory Database, RustSec Advisory Database
portaudio-rs_project portaudio-rsup to 0.3.1NVD

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
RustSec Advisory Database9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

An issue was discovered in the portaudio-rs crate through 0.3.1 for Rust. There is a use-after-free with resultant arbitrary code execution because of a lack of unwind safety in stream_callback and stream_finished_callback.

GitHub Advisory Database

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 .

RustSec Advisory Database

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.

NVD (es)

Se detectó un problema en el paquete (crate) portaudio-rs versiones hasta 0.3.1 para Rust. Se presenta un uso de la memoria previamente liberada con una ejecución de código arbitraria resultante debido a la falta de seguridad del desempaquetado en las funciones stream_callback y stream_finished_callback.

References

Sources

SourceRecordLicence
CVE ListCVE-2019-16881 changed 2024-08-05CVE Terms of Use
GitHub Advisory DatabaseGHSA-qpjr-ch72-2qq4 changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2019-0022 changed 2023-11-08CC0-1.0
NVDCVE-2019-16881 changed 2026-06-17Public domain