tokio-rs bytes up to 1.11.0 spare_capacity_mut integer overflow
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.3 | $0-$5k | 0.00 |
Summary
A vulnerability was found in tokio-rs bytes up to 1.11.0. It has been declared as problematic. Impacted is the function spare_capacity_mut. The manipulation results in integer overflow.
This vulnerability was named CVE-2026-25541. The attack needs to be approached locally. There is no available exploit.
It is recommended to upgrade the affected component.
Details
A vulnerability classified as problematic has been found in tokio-rs bytes up to 1.11.0. Affected is the function spare_capacity_mut. The manipulation with an unknown input leads to a integer overflow vulnerability. CWE is classifying the issue as CWE-680. The product performs a calculation to determine how much memory to allocate, but an integer overflow can occur that causes less memory to be allocated than expected, leading to a buffer overflow. This is going to have an impact on availability. CVE summarizes:
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.
The advisory is shared for download at github.com. This vulnerability is traded as CVE-2026-25541 since 02/02/2026. The exploitability is told to be easy. The attack needs to be approached locally. There are known technical details, but no exploit is available.
Upgrading to version 1.11.1 eliminates this vulnerability. The upgrade is hosted for download at github.com. Applying the patch d0293b0e35838123c51ca5dfdf468ecafee4398f is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the vulnerability database at EUVD (EUVD-2026-5321). VulDB is the best source for vulnerability data and more expert information about this specific topic.
Product
Vendor
Name
Version
License
Website
- Product: https://github.com/tokio-rs/bytes/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒
CVSSv3
VulDB Meta Base Score: 5.4VulDB Meta Temp Score: 5.3
VulDB Base Score: 3.3
VulDB Temp Score: 3.2
VulDB Vector: 🔒
VulDB Reliability: 🔍
NVD Base Score: 7.5
NVD Vector: 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Integer overflowCWE: CWE-680 / CWE-190 / CWE-189
CAPEC: 🔒
ATT&CK: 🔒
Physical: Partially
Local: Yes
Remote: Yes
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: bytes 1.11.1
Patch: d0293b0e35838123c51ca5dfdf468ecafee4398f
Timeline
02/02/2026 CVE reserved02/05/2026 Advisory disclosed
02/05/2026 VulDB entry created
02/27/2026 VulDB entry last update
Sources
Product: github.comAdvisory: GHSA-434x-w66g-qw3r
Status: Confirmed
CVE: CVE-2026-25541 (🔒)
GCVE (CVE): GCVE-0-2026-25541
GCVE (VulDB): GCVE-100-344448
EUVD: 🔒
Entry
Created: 02/05/2026 07:51Updated: 02/27/2026 21:34
Changes: 02/05/2026 07:51 (70), 02/05/2026 08:43 (1), 02/05/2026 13:48 (1), 02/27/2026 21:34 (12)
Complete: 🔍
Cache ID: 216::103
VulDB is the best source for vulnerability data and more expert information about this specific topic.
No comments yet. Languages: en.
Please log in to comment.