GHSA-ghpq-vjxw-ch5w: Libpulse binding Use After Free Vulnerability
HIGHGHSA-ghpq-vjxw-ch5w is a HIGH use after free vulnerability (CWE-416: Use After Free) affecting Libpulse binding libraries in the crates.io ecosystem. The issue involves use after free in libpulse-binding. Remediation is available by upgrading affected packages to version 1.2.1.
GHSA-ghpq-vjxw-ch5w at a Glance
How to Fix GHSA-ghpq-vjxw-ch5w
To remediate this vulnerability, upgrade all affected Libpulse binding dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade libpulse-binding to 1.2.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for libpulse-binding
How to Check if You Are Affected
To determine whether your application is affected by GHSA-ghpq-vjxw-ch5w, inspect your project dependencies for Libpulse binding:
inspect dependencies for libpulse-binding
Analyze the terminal output to locate any version of Libpulse binding in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-416: Use After Free, where the product reuses or references memory after it has been freed. at some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer. In Libpulse binding, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-ghpq-vjxw-ch5w Affected Libpulse binding Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
libpulse-binding
|
crates.io |
< 1.2.1
|
1.2.1
|
References
Frequently Asked Questions
What is GHSA-ghpq-vjxw-ch5w?
Which Libpulse binding versions are affected?
What version fixes GHSA-ghpq-vjxw-ch5w?
Is libpulse-binding affected?
What CWE is associated with GHSA-ghpq-vjxw-ch5w?
How can I check crates.io dependencies for GHSA-ghpq-vjxw-ch5w?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-ghpq-vjxw-ch5w",
"modified" : "2021-08-18T20:41:10Z",
"published" : "2021-08-25T20:56:52Z",
"aliases" : [ ],
"summary" : "Use after free in libpulse-binding",
"details" : "### Overview\n\nVersion 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.\n\nThis advisory is being written retrospectively, having previously only been noted in the changelog. No CVE assignment was sought.\n\n### Patches\n\nUsers are required to update to version 1.2.1 or newer.\n\nVersions 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).",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "libpulse-binding"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.2.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/jnqnfe/pulse-binding-rust/security/advisories/GHSA-ghpq-vjxw-ch5w"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jnqnfe/pulse-binding-rust"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2018-0021.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-416" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-08-18T20:41:10Z",
"nvd_published_at" : null
}
}