Skip to main content
EPSS 0.6%top 55%

CVE-2026-25541: CWE-680: Integer Overflow to Buffer Overflow in tokio-rs bytes

0
Medium
VulnerabilityCVE-2026-25541cvecve-2026-25541cwe-680
Published: 02/04/2026 (02/04/2026, 22:03:53 UTC)
Source: CVE Database V5
Vendor/Project: tokio-rs
Product: bytes

Description

CVE-2026-25541 is a medium severity integer overflow vulnerability in the tokio-rs bytes library affecting versions 1.2.1 through 1.11.0. The issue arises in the BytesMut::reserve function where unchecked addition can overflow the usize type in release builds, corrupting the capacity value. This can lead to out-of-bounds slices and undefined behavior, potentially causing memory corruption or crashes. No authentication or user interaction is required to trigger the vulnerability. It has been patched in version 1.11.

CVSS v4.0

Score 5.5medium

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS: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

Affected software

crates.iomore threats →ai
tokio-rs/bytes
pkg:cargo/tokio-rs/bytes
Affected versions
>=1.2.1 <1.11

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/13/2026, 10:03:05 UTC

Technical Analysis

This vulnerability in the tokio-rs bytes library (versions 1.2.1 to 1.11.0) involves an integer overflow in the BytesMut::reserve function. The unchecked addition of capacity values can overflow the usize type in release builds, resulting in corruption of the internal capacity field. This corrupted capacity can cause out-of-bounds memory accesses, leading to undefined behavior such as memory corruption or application crashes. The flaw does not require any privileges or user interaction to exploit. The issue has been addressed and fixed in version 1.11 of the library.

Potential Impact

Exploitation of this vulnerability can cause memory corruption or crashes due to out-of-bounds memory access stemming from corrupted capacity values. The vulnerability does not require authentication or user interaction, increasing the risk in environments where the vulnerable library is used. However, there are no known exploits in the wild at this time.

Mitigation Recommendations

A fix is available in version 1.11 of the tokio-rs bytes library. Users and developers should upgrade to version 1.11 or later to remediate this vulnerability. No additional mitigation steps are indicated by the vendor advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-02-02T19:59:47.375Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6983c4edf9fa50a62fb05c7f

Added to database: 02/04/2026, 22:15:09 UTC

Last enriched: 07/13/2026, 10:03:05 UTC

Last updated: 09/10/2026, 19:24:59 UTC

Views: 242

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses