CVE-2026-25541

Bytes is vulnerable to integer overflow in BytesMut::reserve

HIGH
7.5
CVSS Score
Published: February 4, 2026 at 10:03 PM UTC
Updated: June 17, 2026 at 10:24 AM UTC
1 product affected across 1 vendorBytes

Using bytes by tokio-rs?

Get instant alerts when new vulnerabilities affect bytes - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 0.6%
SSVC
PoC

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.11.11.2.1 ≤ v < 1.11.1
Affected range stops below 1.11.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (4)

x_refsource_CONFIRMExploitVendor Advisory
Source: cverecord
https://github.com/tokio-rs/bytes/security/advisories/GHSA-434x-w66g-qw3r
x_refsource_MISCProductRelease Notes
Source: cverecord
https://github.com/tokio-rs/bytes/releases/tag/v1.11.1
x_refsource_MISCExploitThird Party Advisory
Source: cverecord
https://rustsec.org/advisories/RUSTSEC-2026-0007.html

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-680

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card