Skip to content

Use after free in libpulse-binding

Moderate severity GitHub Reviewed Published Oct 22, 2020 in jnqnfe/pulse-binding-rust • Updated Apr 22, 2024

Package

cargo libpulse-binding (Rust)

Affected versions

>= 1.0.5, < 2.5.0

Patched versions

2.5.0

Description

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

@jnqnfe jnqnfe published to jnqnfe/pulse-binding-rust Oct 22, 2020
Published to the GitHub Advisory Database Feb 3, 2024
Reviewed Feb 3, 2024
Last updated Apr 22, 2024

Severity

Moderate
6.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Weaknesses

CVE ID

No known CVE

GHSA ID

GHSA-f56g-chqp-22m9

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.