7.5

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

CVSS: 7.5v3.1HighAnalyzed
AliasesSUSE-SU-2026:22935-1UBUNTU-CVE-2026-25541DEBIAN-CVE-2026-25541
Published 04-02-2026Last modified 05-02-2026

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.

Overall risk
40/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
0.61%
0%100%
Low · +0.05 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits2github, reference

Advisory lineage

Upstream 0 · Downstream 34 · Related 35

Timeline

  1. 04-02-2026
    PublishedVulnerability first disclosed.
  2. 05-02-2026
    Last 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

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

21-09-202621-10-2026
EPSS score
0.61%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

2 found
  • githubUnverified

    Bytes

    Maturity: poc

  • referenceUnverified

    Exploit Reference (rustsec.org)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected 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
Ubuntu1 product
  • rust-bytesAll versions (No fix recorded)

8 vendors · 160 products

References

19 links
Show all 19 references