GHSA-f56g-chqp-22m9

Suggest an improvement
Source
https://github.com/advisories/GHSA-f56g-chqp-22m9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-f56g-chqp-22m9/GHSA-f56g-chqp-22m9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-f56g-chqp-22m9
Aliases
Published
2024-02-03T00:28:45Z
Modified
2024-04-22T18:49:42Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
Use after free in libpulse-binding
Details

Overview

Version 2.5.0 of the libpulse-binding Rust crate, released on the 22nd of December 2018, fixed a potential use-after-free issue with property list iteration due to a lack of a lifetime constraint tying the lifetime of a proplist::Iterator to the Proplist object for which it was created. This made it possible for users, without experiencing a compiler error/warning, to destroy the Proplist object before the iterator, thus destroying the underlying C object the iterator works upon, before the iterator may be finished with it.

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

This impacts all versions of the crate before 2.5.0 back to 1.0.5. Before version 1.0.5 the function that produces the iterator was broken to the point of being useless.

Patches

Users are required to update to version 2.5.0 or newer.

Versions older than 2.5.0 have been yanked from crates.io as of the 22nd of October 2020.

References

Affected packages

crates.io / libpulse-binding

Package

Name
libpulse-binding
View open source insights on deps.dev
Purl
pkg:cargo/libpulse-binding

Affected ranges

Type
SEMVER
Events
Introduced
1.0.5
Fixed
2.5.0