CVE-2018-25028: Libpulse binding Use After Free Vulnerability
HIGHCVE-2018-25028 is a HIGH (CVSS 7.5) 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.
CVE-2018-25028 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2018-25028
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 CVE-2018-25028, 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
CVE-2018-25028 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 CVE-2018-25028?
Which Libpulse binding versions are affected?
What version fixes CVE-2018-25028?
Is libpulse-binding affected?
What is the CVSS score of CVE-2018-25028?
What CWE is associated with CVE-2018-25028?
How can I check crates.io dependencies for CVE-2018-25028?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jqpv-jm4m-86j9",
"modified" : "2023-06-13T17:45:06Z",
"published" : "2022-01-06T22:17:50Z",
"aliases" : [ "CVE-2018-25028" ],
"summary" : "Use After Free in libpulse-binding",
"details" : "Affected versions contained 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"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" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-25028"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jnqnfe/pulse-binding-rust"
}, {
"type" : "WEB",
"url" : "https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/libpulse-binding/RUSTSEC-2018-0021.md"
}, {
"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" : "2022-01-06T18:29:31Z",
"nvd_published_at" : "2021-12-27T00:15:00Z"
}
}