CVE-2019-16881 Use after free in portaudio-rs

Critical 9.8 Published Updated

A use-after-free vulnerability in the portaudio-rs Rust crate allows attackers to execute arbitrary code due to unsafe callback handling.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-16881?

CVE-2019-16881 is a critical use after free vulnerability in n/a, published on 25 Sep 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-416

Which versions are affected by CVE-2019-16881?

3 open source packages ship an affected version, including portaudio-rs. It affects 1 product.

PackageAffectedFixed in
portaudio-rs crates.ioAll versions0.3.2
portaudio-rs crates.ioAll versions0.3.2
portaudio-rs crates.ioFrom 0.0.0-00.3.2-0

Products include Portaudio-Rs Project Portaudio-Rs.

How do I fix CVE-2019-16881?

Upgrade portaudio-rs to a fixed version for your release line: 0.3.2 or 0.3.2-0.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2019-16881 being exploited?

There is no known exploitation of CVE-2019-16881 in the wild and no public exploit code.

Sources

Also known as GHSA-qpjr-ch72-2qq4, RUSTSEC-2019-0022.

Is CVE-2019-16881 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free