CVE-2026-25541: tokio-rs bytes Integer Overflow to Buffer Overflow
Vulnerability summary
CVE-2026-25541 is a high (CVSS 7.5) Integer Overflow to Buffer Overflow vulnerability in tokio-rs bytes. EPSS estimates a 0.61% chance of exploitation in the next 30 days, higher than 48.4% of scored vulnerabilities. 2 public exploits are recorded.
Advisory lineage
Upstream 0 · Downstream 34 · Related 35Timeline
- 04-02-2026PublishedVulnerability first disclosed.
- 05-02-2026Last modifiedVulnerability information updated.
Description
Bytes is a utility library for working with bytes. From version 1.2.1 to before 1.11.1, Bytes is vulnerable to integer overflow in BytesMut::reserve. In the unique reclaim path of BytesMut::reserve, if the condition "v_capacity >= new_cap + offset" uses an unchecked addition. When new_cap + offset overflows usize in release builds, this condition may incorrectly pass, causing self.cap to be set to a value that exceeds the actual allocated capacity. Subsequent APIs such as spare_capacity_mut() then trust this corrupted cap value and may create out-of-bounds slices, leading to UB. This behavior is observable in release builds (integer overflow wraps), whereas debug builds panic due to overflow checks. This issue has been patched in version 1.11.1.
CVSS metrics
9 scores · 7 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated6.9MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:PDiffers
- OSV · WolfiEcosystem advisory · calculated6.9MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:PDiffers
- OSV · ChainguardEcosystem advisory · calculated6.9MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:PDiffers
- OSV · Crates.ioEcosystem advisory · calculated6.9MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:PDiffers
- NVDNIST5.5MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.61%
Chance of exploitation in the next 30 days
Percentile
48%
Versus all other CVEs
30-day change
+0.05 pp
From 0.56% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
2 foundBytes
Maturity: poc
Exploit Reference (rustsec.org)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Chainguard79 products
- asciinema< 3.1.0-r1
- atuin< 18.11.0-r1
- berg< 0.5.4-r2
- bootc-binary< 1.10.0-r2
- buck2< 20260201-r1
Wolfi59 products
- atuin< 18.11.0-r1
- berg< 0.5.4-r2
- buck2< 20260201-r1
- cargo-audit< 0.22.0-r1
- cargo-c< 0.10.20-r2
Opensuse17 products
- cargo-audit&distro=openSUSE Tumbleweed< 0.22.2~git0.281452c-2.1
- cargo-c&distro=openSUSE Tumbleweed< 0.10.23-2.1
- forgejo-cli&distro=openSUSE Tumbleweed< 0.6.0-2.1
- git-cliff&distro=openSUSE Tumbleweed< 2.13.1-1.1
- librepods&distro=openSUSE Tumbleweed< 0.1.0+git20260515.672e65a-1.1
Crates.Io1 product
- bytes≥ 1.2.1, < 1.11.1
Debian1 product
- rust-bytesAll versions (No fix recorded) | < 1.11.1-1
Suse1 product
- nm-configurator&distro=SUSE Linux Micro 6.2< 0.3.5-160000.1.1
Tokio-rs1 product
- bytes≥ 1.2.1, < 1.11.1
Ubuntu1 product
- rust-bytesAll versions (No fix recorded)
8 vendors · 160 products
References
19 links- github.com/tokio-rs/bytes/security/advisories/GHSA-434x-w66g-qw3rX Refsource CONFIRMAdvisoryWEBExploitVendor Advisory
- github.com/tokio-rs/bytes/commit/d0293b0e35838123c51ca5dfdf468ecafee4398fX Refsource MISCFIXWEBPatch
- rustsec.org/advisories/RUSTSEC-2026-0007.htmlX Refsource MISCREPORTAdvisoryWEBExploitThird Party Advisory
Show all 19 references
- github.com/tokio-rs/bytesPACKAGE
- crates.io/crates/bytesPACKAGE