Skip to content
Heist/ feed
Back to feed
UnratedFix available

Use-after-free with objects returned by `Stream`'s `get_format_info` and `get_context` methods

Type: advisorySources: OSV

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.

Products
libpulse-binding
Affected versions
Not specified
Fixed versions
1.2.1
CVEs
CVE-2018-25027, CVE-2018-25028
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 08:40 UTC · Revision 1

Source evidence

Use-after-free with objects returned by `Stream`'s `get_format_info` and `get_context` methods

core-osv · Original source

Published 15 Jun 2018, 12:00 UTC

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.

osv:RUSTSEC-2018-0021

libpulse-binding

Fixed versions: 1.2.1

Complete source record
{
  "id": "fc6856816c57d2b02b62c6249d8e48d5e7ab3ec82cbf6b0c182a5ddb745b8e8e",
  "url": "https://osv.dev/vulnerability/RUSTSEC-2018-0021",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Use-after-free with objects returned by `Stream`'s `get_format_info` and `get_context` methods",
    "summary": "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.",
    "evidence": "osv:RUSTSEC-2018-0021",
    "products": [
      {
        "name": {
          "value": "libpulse-binding",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.2.1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "RUSTSEC-2018-0021",
      "aliases": [
        "CVE-2018-25027",
        "CVE-2018-25028",
        "GHSA-ghpq-vjxw-ch5w",
        "GHSA-hxjf-h2mh-r6hj",
        "GHSA-jqpv-jm4m-86j9",
        "RUSTSEC-2018-0021"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0.0.0-0"
                },
                {
                  "fixed": "1.2.1"
                }
              ]
            }
          ],
          "package": {
            "name": "libpulse-binding",
            "purl": "pkg:cargo/libpulse-binding",
            "ecosystem": "crates.io"
          },
          "database_specific": {
            "cvss": null,
            "source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2018-0021.json",
            "categories": [
              "memory-corruption"
            ],
            "informational": null
          },
          "ecosystem_specific": {
            "affects": {
              "os": [],
              "arch": [],
              "functions": [
                "libpulse_binding::stream::Stream::get_context",
                "libpulse_binding::stream::Stream::get_format_info"
              ]
            },
            "affected_functions": null
          }
        }
      ],
      "modified": "2026-10-12T18:00:02.676199383Z",
      "provider": "osv",
      "references": [
        "https://crates.io/crates/libpulse-binding",
        "https://rustsec.org/advisories/RUSTSEC-2018-0021.html",
        "https://github.com/jnqnfe/pulse-binding-rust/commit/e6930e16573f0b6d12d6628ba5de59147d6f9e95"
      ],
      "provider_metadata": {
        "license": "CC0-1.0"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-25027",
        "evidence": "/aliases"
      },
      {
        "value": "CVE-2018-25028",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 306325,
  "published_at": "2018-06-15T12:00:00+00:00"
}