{"schema_version":"1.9.0","id":"RUSTSEC-2018-0021","published":"2018-06-15T12:00:00Z","modified":"2026-10-12T18:00:02.676199383Z","aliases":["CVE-2018-25027","CVE-2018-25028","GHSA-ghpq-vjxw-ch5w","GHSA-hxjf-h2mh-r6hj","GHSA-jqpv-jm4m-86j9"],"summary":"Use-after-free with objects returned by `Stream`'s `get_format_info` and `get_context` methods","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.","affected":[{"package":{"name":"libpulse-binding","ecosystem":"crates.io","purl":"pkg:cargo/libpulse-binding"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"1.2.1"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"arch":[],"functions":["libpulse_binding::stream::Stream::get_context","libpulse_binding::stream::Stream::get_format_info"],"os":[]}},"database_specific":{"categories":["memory-corruption"],"cvss":null,"informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2018-0021.json"}}],"references":[{"type":"PACKAGE","url":"https://crates.io/crates/libpulse-binding"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2018-0021.html"},{"type":"WEB","url":"https://github.com/jnqnfe/pulse-binding-rust/commit/e6930e16573f0b6d12d6628ba5de59147d6f9e95"}],"database_specific":{"license":"CC0-1.0"}}