ubuntu-cve-2015-20001
Vulnerability from osv_ubuntu
Published
2021-04-11 20:15
Modified
2025-07-16 04:51
Summary
Details

In the standard library in Rust before 1.2.0, BinaryHeap is not panic-safe. The binary heap is left in an inconsistent state when the comparison of generic elements inside sift_up or sift_down_range panics. This bug leads to a drop of zeroed memory as an arbitrary type, which can result in a memory safety violation.


{
  "affected": [
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "libstd-rust-1.47",
            "binary_version": "1.47.0+dfsg1+llvm-1ubuntu1~16.04.1"
          },
          {
            "binary_name": "libstd-rust-1.47-dbgsym",
            "binary_version": "1.47.0+dfsg1+llvm-1ubuntu1~16.04.1"
          },
          {
            "binary_name": "libstd-rust-dev",
            "binary_version": "1.47.0+dfsg1+llvm-1ubuntu1~16.04.1"
          },
          {
            "binary_name": "rust-doc",
            "binary_version": "1.47.0+dfsg1+llvm-1ubuntu1~16.04.1"
          },
          {
            "binary_name": "rust-gdb",
            "binary_version": "1.47.0+dfsg1+llvm-1ubuntu1~16.04.1"
          },
          {
            "binary_name": "rust-lldb",
            "binary_version": "1.47.0+dfsg1+llvm-1ubuntu1~16.04.1"
          },
          {
            "binary_name": "rust-src",
            "binary_version": "1.47.0+dfsg1+llvm-1ubuntu1~16.04.1"
          },
          {
            "binary_name": "rustc",
            "binary_version": "1.47.0+dfsg1+llvm-1ubuntu1~16.04.1"
          },
          {
            "binary_name": "rustc-dbgsym",
            "binary_version": "1.47.0+dfsg1+llvm-1ubuntu1~16.04.1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:16.04:LTS",
        "name": "rustc",
        "purl": "pkg:deb/ubuntu/rustc@1.47.0+dfsg1+llvm-1ubuntu1~16.04.1?arch=source\u0026distro=xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.47.0+dfsg1+llvm-1ubuntu1~16.04.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1.7.0+dfsg1-1",
        "1.15.1+dfsg0-1~exp1ubuntu2~16.04.3",
        "1.17.0+dfsg2-8~ubuntu0.16.04.2",
        "1.21.0+dfsg1+llvm-0ubuntu3~16.04.1",
        "1.22.1+dfsg1+llvm-0ubuntu2~16.04.2",
        "1.24.1+dfsg1+llvm-0ubuntu1~16.04.1",
        "1.25.0+dfsg1+llvm-0ubuntu1~16.04.1",
        "1.28.0+dfsg1+llvm-0ubuntu1~16.04.1",
        "1.30.0+dfsg1+llvm-2ubuntu1~16.04.1",
        "1.31.0+dfsg1+llvm-2ubuntu1~16.04.1",
        "1.32.0+dfsg1+llvm-1ubuntu1~16.04.1",
        "1.34.1+dfsg2+llvm-0ubuntu1~16.04.1",
        "1.35.0+dfsg0.1+llvm-0ubuntu1~16.04.1",
        "1.36.0+dfsg1+llvm-2ubuntu1~16.04.1",
        "1.37.0+dfsg1+llvm-1ubuntu1~16.04.1",
        "1.39.0+dfsg1+llvm-3ubuntu1~16.04.1",
        "1.41.0+dfsg1+llvm-0ubuntu1~16.04.1",
        "1.43.0+dfsg1+llvm-1~exp1ubuntu2~16.04.1"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "libstd-rust-1.47",
            "binary_version": "1.47.0+dfsg1+llvm-1ubuntu1~18.04.1"
          },
          {
            "binary_name": "libstd-rust-1.47-dbgsym",
            "binary_version": "1.47.0+dfsg1+llvm-1ubuntu1~18.04.1"
          },
          {
            "binary_name": "libstd-rust-dev",
            "binary_version": "1.47.0+dfsg1+llvm-1ubuntu1~18.04.1"
          },
          {
            "binary_name": "rust-doc",
            "binary_version": "1.47.0+dfsg1+llvm-1ubuntu1~18.04.1"
          },
          {
            "binary_name": "rust-gdb",
            "binary_version": "1.47.0+dfsg1+llvm-1ubuntu1~18.04.1"
          },
          {
            "binary_name": "rust-lldb",
            "binary_version": "1.47.0+dfsg1+llvm-1ubuntu1~18.04.1"
          },
          {
            "binary_name": "rust-src",
            "binary_version": "1.47.0+dfsg1+llvm-1ubuntu1~18.04.1"
          },
          {
            "binary_name": "rustc",
            "binary_version": "1.47.0+dfsg1+llvm-1ubuntu1~18.04.1"
          },
          {
            "binary_name": "rustc-dbgsym",
            "binary_version": "1.47.0+dfsg1+llvm-1ubuntu1~18.04.1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:18.04:LTS",
        "name": "rustc",
        "purl": "pkg:deb/ubuntu/rustc@1.47.0+dfsg1+llvm-1ubuntu1~18.04.1?arch=source\u0026distro=bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.47.0+dfsg1+llvm-1ubuntu1~18.04.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1.18.0+dfsg1-4ubuntu1",
        "1.24.1+dfsg1+llvm-0ubuntu1",
        "1.24.1+dfsg1+llvm-0ubuntu2",
        "1.25.0+dfsg1+llvm-0ubuntu1",
        "1.28.0+dfsg1+llvm-0ubuntu1~18.04.1",
        "1.30.0+dfsg1+llvm-2ubuntu1~18.04.1",
        "1.31.0+dfsg1+llvm-2ubuntu1~18.04.1",
        "1.32.0+dfsg1+llvm-1ubuntu1~18.04.1",
        "1.34.1+dfsg2+llvm-0ubuntu1~18.04.1",
        "1.35.0+dfsg0.1+llvm-0ubuntu1~18.04.1",
        "1.36.0+dfsg1+llvm-2ubuntu1~18.04.1",
        "1.37.0+dfsg1+llvm-1ubuntu1~18.04.1",
        "1.39.0+dfsg1+llvm-3ubuntu1~18.04.1",
        "1.41.0+dfsg1+llvm-0ubuntu1~18.04.1",
        "1.43.0+dfsg1+llvm-1~exp1ubuntu2~18.04.1"
      ]
    }
  ],
  "aliases": [],
  "details": "In the standard library in Rust before 1.2.0, BinaryHeap is not panic-safe. The binary heap is left in an inconsistent state when the comparison of generic elements inside sift_up or sift_down_range panics. This bug leads to a drop of zeroed memory as an arbitrary type, which can result in a memory safety violation.",
  "id": "UBUNTU-CVE-2015-20001",
  "modified": "2025-07-16T04:51:04Z",
  "published": "2021-04-11T20:15:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2015-20001"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/rust-lang/rust/issues/25842"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/rust-lang/rust/pull/25856"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2015-20001"
    }
  ],
  "related": [],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2015-20001"
  ],
  "withdrawn": "2025-07-18T16:43:21Z"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…