CVE-2026-25541: CWE-680: Integer Overflow to Buffer Overflow in tokio-rs bytes
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.
AI Analysis
Technical Summary
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.
CVE-2026-25541: CWE-680: Integer Overflow to Buffer Overflow in tokio-rs 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
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.