CVE-2026-44983: smallbitvec Integer Overflow Vulnerability
HIGHCVE-2026-44983 is a HIGH (CVSS 7.3) integer overflow vulnerability (CWE-190: Integer Overflow or Wraparound) affecting smallbitvec libraries in the crates.io ecosystem. The issue involves integer overflow in safe api leads to heap buffer overflow. Remediation is available in the latest vendor maintenance releases.
CVE-2026-44983 at a Glance
Security Impact
CVSS: 7.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H).
How to Fix CVE-2026-44983
To remediate this vulnerability, upgrade all affected smallbitvec dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade smallbitvec to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for smallbitvec
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-44983, inspect your project dependencies for smallbitvec:
inspect dependencies for smallbitvec
Analyze the terminal output to locate any version of smallbitvec in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-190: Integer Overflow or Wraparound, where the product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. this occurs when an integer value is incremented to a value that is too large to store in the associated representation. when this occurs, the value may become a very small or negative number. In smallbitvec, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-44983 Affected smallbitvec Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
smallbitvec
|
crates.io |
≥ 1.0.1
≤ 2.6.0
|
|
References
Frequently Asked Questions
What is CVE-2026-44983?
Which smallbitvec versions are affected?
What version fixes CVE-2026-44983?
Is smallbitvec affected?
What is the CVSS score of CVE-2026-44983?
What CWE is associated with CVE-2026-44983?
How can I check crates.io dependencies for CVE-2026-44983?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-97wc-2hqc-cjgr",
"modified" : "2026-06-08T23:35:08Z",
"published" : "2026-05-09T00:02:47Z",
"aliases" : [ "CVE-2026-44983" ],
"summary" : "smallbitvec: Integer overflow in safe API leads to heap buffer overflow",
"details" : "### Summary\nAn 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.\n\n### Details\nThe issue originates from unchecked arithmetic in the internal helper function responsible for computing the required buffer size:\n\n```\n(cap + bits_per_storage() - 1) / bits_per_storage()\n```\n\nWhen `cap` is close to `usize::MAX`, the addition:\n\n```\ncap + bits_per_storage() - 1\n```\n\ncan overflow in release builds and wrap around due to Rust’s default wrapping semantics for integer overflow in optimized builds.\n\nAs a result:\n- `buffer_len(cap)` may return a value significantly smaller than required.\n- The backing storage is allocated with insufficient size.\n- Internal metadata (logical length/capacity) reflects a much larger size than the actual allocation.\n\nSubsequent safe API calls (e.g., `set`, `push`, `reserve`) rely on this corrupted metadata and perform index computations that assume sufficient backing storage. These operations eventually reach unsafe internal code paths (e.g., pointer arithmetic and unchecked indexing), leading to out-of-bounds memory access.\n\nSummary of the issue:\ninteger overflow\n→ undersized allocation\n→ inconsistent metadata (len/cap vs actual buffer)\n→ unsafe internal access using corrupted metadata\n→ heap buffer overflow (UB)\n### PoC\n#### PoC 1: Out-of-bounds write via `from_elem`\n```rust\n#![forbid(unsafe_code)]\n\nuse smallbitvec::SmallBitVec;\n\nfn main() {\n // Triggers overflow in buffer_len(cap)\n let mut v = SmallBitVec::from_elem(usize::MAX, false);\n\n // Logical length is large, but backing storage is undersized\n // This leads to out-of-bounds write in unsafe internals\n v.set(0, true);\n}\n```\n#### PoC 2: Overflow via `reserve`\n```rust\n#![forbid(unsafe_code)]\n\nuse smallbitvec::SmallBitVec;\n\nfn main() {\n let mut v = SmallBitVec::new();\n v.push(true);\n\n // Triggers overflow in capacity computation\n v.reserve(usize::MAX - 10);\n}\n```\n\n### Impact\n- Heap buffer overflow via safe API only\n- ASAN-observable heap-buffer-overflow\n- Undefined Behavior detectable with Miri (e.g., out-of-bounds indexing due to corrupted metadata)\n\n### Tested on\n- rustc 1.96.0-nightly (9602bda1d 2026-04-05)\n- Target: x86_64-unknown-linux-gnu\n- Build: release\n- ASAN: `RUSTFLAGS=\"-Z sanitizer=address\" cargo +nightly run --release`\n- Miri: `cargo +nightly miri run --release`",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "smallbitvec"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.1"
}, {
"last_affected" : "2.6.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/servo/smallbitvec/security/advisories/GHSA-97wc-2hqc-cjgr"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-44983"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/servo/smallbitvec"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-122", "CWE-190" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-09T00:02:47Z",
"nvd_published_at" : "2026-05-26T22:16:43Z"
}
}