Skip to content
Heist/ feed
Back to feed
Critical

rust-smallvec — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2021-25900

An issue was discovered in the smallvec crate before 0.6.14 and 1.x before 1.6.1 for Rust. There is a heap-based buffer overflow in SmallVec::insert_many.

Products
rust-smallvec
Affected versions
0.6.10-1, 1.1.0-1, 1.11.0-1, 1.11.2-1, 1.13.2-1, 1.15.1-1, 1.15.2-1, 1.4.2-2, 1.7.0-1
Fixed versions
Not specified
CVEs
CVE-2021-25900
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:30 UTC · Revision 1

Source evidence

UBUNTU-CVE-2021-25900

core-osv · Original source

Published 26 Jan 2021, 18:16 UTC

An issue was discovered in the smallvec crate before 0.6.14 and 1.x before 1.6.1 for Rust. There is a heap-based buffer overflow in SmallVec::insert_many.

osv:UBUNTU-CVE-2021-25900

rust-smallvec

Fixed versions: Not specified

rust-smallvec

Fixed versions: Not specified

rust-smallvec

Fixed versions: Not specified

rust-smallvec

Fixed versions: Not specified

rust-smallvec

Fixed versions: Not specified

rust-smallvec

Fixed versions: Not specified

Complete source record
{
  "id": "bb1b615672805961f18cd453f852421f690c2c7c16c37850bb6d4bfdd446a63c",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-25900",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2021-25900",
    "summary": "An issue was discovered in the smallvec crate before 0.6.14 and 1.x before 1.6.1 for Rust. There is a heap-based buffer overflow in SmallVec::insert_many.",
    "evidence": "osv:UBUNTU-CVE-2021-25900",
    "products": [
      {
        "name": {
          "value": "rust-smallvec",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.6.10-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.1.0-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-smallvec",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.4.2-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.7.0-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-smallvec",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.11.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.11.2-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-smallvec",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.13.2-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-smallvec",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.15.1-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.15.2-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-smallvec",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.13.2-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "1.15.1-1",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2021-25900",
      "aliases": [
        "UBUNTU-CVE-2021-25900"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-smallvec",
            "purl": "pkg:deb/ubuntu/rust-smallvec?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "0.6.10-1",
            "1.1.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-25900.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-smallvec+serde-dev",
                "binary_version": "1.1.0-1"
              },
              {
                "binary_name": "librust-smallvec-dev",
                "binary_version": "1.1.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-smallvec",
            "purl": "pkg:deb/ubuntu/rust-smallvec?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.4.2-2",
            "1.7.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-25900.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-smallvec+serde-dev",
                "binary_version": "1.7.0-1"
              },
              {
                "binary_name": "librust-smallvec-dev",
                "binary_version": "1.7.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-smallvec",
            "purl": "pkg:deb/ubuntu/rust-smallvec?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.11.0-1",
            "1.11.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-25900.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-smallvec-dev",
                "binary_version": "1.11.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-smallvec",
            "purl": "pkg:deb/ubuntu/rust-smallvec?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "1.13.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-25900.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-smallvec-dev",
                "binary_version": "1.13.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-smallvec",
            "purl": "pkg:deb/ubuntu/rust-smallvec?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.15.1-1",
            "1.15.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-25900.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-smallvec-dev",
                "binary_version": "1.15.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-smallvec",
            "purl": "pkg:deb/ubuntu/rust-smallvec?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.13.2-1",
            "1.15.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-25900.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-smallvec-dev",
                "binary_version": "1.15.1-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:58.993252894Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-25900"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2021-25900",
        "https://rustsec.org/advisories/RUSTSEC-2021-0003.html",
        "https://github.com/servo/rust-smallvec/issues/252",
        "https://www.cve.org/CVERecord?id=CVE-2021-25900"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-25900",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356597,
  "published_at": "2021-01-26T18:16:00+00:00"
}