Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. libpulse-binding
  4. ›
  5. GHSA-ghpq-vjxw-ch5w

GHSA-ghpq-vjxw-ch5w: Use after free in libpulse-binding

August 25, 2021

Overview

Version 1.2.1 of the libpulse-binding Rust crate, released on the 15th of June 2018, fixed a pair of use-after-free issues with the objects returned by the get_format_info and get_context methods of Stream objects. These objects were mistakenly being constructed without setting an important flag to prevent destruction of the underlying C objects they reference upon their own destruction.

This advisory is being written retrospectively, having previously only been noted in the changelog. No CVE assignment was sought.

Patches

Users are required to update to version 1.2.1 or newer.

Versions older than 1.2.1 have been yanked from crates.io. This was believed to have already been done at the time of the 1.2.1 release, but upon double checking now they were found to still be available, so has been done now (22nd October 2020).

References

  • github.com/advisories/GHSA-ghpq-vjxw-ch5w
  • github.com/jnqnfe/pulse-binding-rust
  • github.com/jnqnfe/pulse-binding-rust/security/advisories/GHSA-ghpq-vjxw-ch5w
  • rustsec.org/advisories/RUSTSEC-2018-0021.html

Code Behaviors & Features

Detect and mitigate GHSA-ghpq-vjxw-ch5w with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.2.1

Fixed versions

  • 1.2.1

Solution

Upgrade to version 1.2.1 or above.

Weakness

  • CWE-416: Use After Free

Source file

cargo/libpulse-binding/GHSA-ghpq-vjxw-ch5w.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:22 +0000.