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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| servo | smallbitvec | >= 1.0.1, < 2.6.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rust-smallbitvec | 2.6.1-1 | — |
| Debian 13 | rust-smallbitvec | No fix yet | — |
| Debian 12 | rust-smallbitvec | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | rust-smallbitvec | No fix yet | — |
| Ubuntu 26.04 LTS | rust-smallbitvec | No fix yet | — |
| Ubuntu 25.10 | rust-smallbitvec | No fix yet | — |
| Ubuntu 24.04 LTS | rust-smallbitvec | No fix yet | — |
| Ubuntu 22.04 LTS | rust-smallbitvec | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | smallbitvec | >= 1.0.1, <= 2.6.0 | — | GHSA-97wc-2hqc-cjgr |