CVE-2026-44983

smallbitvec: Safe API Triggered Heap Buffer Overflow via Integer Overflow

Published May 26, 2026 CVSS 3.1 · 7.3 High EPSS < 1% KEV · Not listed
Description
smallbitvec is a growable bit-vector for Rust, optimized for size. From 1.0.1 to 2.6.0, an integer overflow in the internal capacity calculation of smallbitvec can lead to an undersized heap allocation, resulting in a heap buffer overflow through safe APIs only. This allows memory corruption without requiring unsafe code from the caller. This vulnerability is fixed in 2.6.1.

Analysis

AI-generated

Technical impact

The vulnerability resides in the internal capacity calculation of a resizeable bit‑vector library, where an integer overflow generates an undersized heap allocation. This results in a heap buffer overflow that can corrupt arbitrary memory. The flaw is exposed through the library’s safe API, so callers do not need to use unsafe Rust code to exploit it. The direct impact is that an attacker who can influence the size of a bit‑vector instance may cause the program to read or write beyond its intended bounds.

Affected Systems

The affected component is the smallbitvec crate, a growable bit‑vector implementation from the Servo project. Versions from 1.0.1 up to and including 2.6.0 inherit the bug. The issue was resolved in version 2.6.1, which corrects the capacity calculation to prevent the overflow.

Risk and Exploitability

The CVSS score of 7.3 indicates a moderately high severity. No exploit probability (EPSS) data is available, and the vulnerability is not listed in the CISA KEV catalog. Attackers would need to trigger the smallbitvec capacity calculation with a value that overflows, typically by supplying a large input to code that constructs or resizes a bit‑vector. While the flaw can be triggered from user‑controlled data, it requires an ability to create the vulnerable object, making remote exploitation less straightforward but still plausible in contexts where the library processes external input.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the smallbitvec crate to version 2.6.1 or later in Cargo.toml and Cargo.lock and rebuild the binary.
  • Verify all transitive dependencies to ensure no older pre‑2.6.1 releases remain; run cargo audit or check Cargo.lock and adjust any affected crates accordingly.
  • If an immediate upgrade is not feasible, add validation logic around all bit‑vector construction and resizing calls to enforce a maximum size that will not trigger the overflow; optionally wrap constructors to reject unsafe sizes.

Generated by OpenCVE AI on May 26, 2026 at 22:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-97wc-2hqc-cjgr smallbitvec: Integer overflow in safe API leads to heap buffer overflow
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Servo
Servo smallvec
Vendors & Products Servo
Servo smallvec
Type Values Removed Values Added
Description smallbitvec is a growable bit-vector for Rust, optimized for size. From 1.0.1 to 2.6.0, an integer overflow in the internal capacity calculation of smallbitvec can lead to an undersized heap allocation, resulting in a heap buffer overflow through safe APIs only. This allows memory corruption without requiring unsafe code from the caller. This vulnerability is fixed in 2.6.1.
Title smallbitvec: Safe API Triggered Heap Buffer Overflow via Integer Overflow
Weaknesses CWE-122
CWE-190
References
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H'}

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow

  • CWE-190

    Integer Overflow or Wraparound

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 27, 2026, 12:45 PM
Reserved
May 8, 2026, 4:23 PM
Status
Deferred
Published
May 26, 2026, 10:16 PM
Modified
Jul 24, 2026, 12:10 PM