cve.bz

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

5.5 mediumExploit referenceEPSS 0.6%Fix available

Medium (5.5) in tokio-rs bytes. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in bytes 1.11.1.

On this page
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.

Severity

CVSS 4.0

5.5 medium
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

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 46th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-02-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-680 Integer Overflow to Buffer Overflow
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-25541 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-25541?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-25541?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-25541 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
tokio-rs:bytesfrom 1.2.1 before 1.11.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-434x-w66g-qw3rcrates.iobytes>=1.2.1 <1.11.11.11.1
RUSTSEC-2026-0007crates.iobytes>=1.2.1 <1.11.11.11.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13rust-bytesno fix listedDEBIAN-CVE-2026-25541
Debian14rust-bytes1.11.1-1DEBIAN-CVE-2026-25541
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 2 morerust-bytesno fix listedUBUNTU-CVE-2026-25541
SUSELinux Enterprise Micro 5.3afterburn5.10.0.git73.b97f772-150400.3.6.1SUSE-SU-2026:2976-1
SUSELinux Enterprise Micro 5.4afterburn5.10.0.git73.b97f772-150400.3.6.1SUSE-SU-2026:2977-1
SUSELinux Enterprise Micro 5.5afterburn5.10.0.git73.b97f772-150500.3.6.1SUSE-SU-2026:2975-1
SUSELinux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6sccache0.17.0~1-150600.10.14.1SUSE-SU-2026:3674-1
SUSELinux Enterprise Module for Public Cloud 15 SP6, Linux Enterprise Module for Public Cloud 15 SP7aws-efs-utils3.3.4-150600.17.12.1SUSE-SU-2026:5101-1
SUSELinux Enterprise Module for Public Cloud 15 SP6, Linux Enterprise Module for Public Cloud 15 SP7aws-nitro-enclaves-cli1.5.0~git0.2950b36-150600.10.15.1SUSE-SU-2026:3992-1
SUSELinux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6snpguest0.3.2-150600.3.14.1SUSE-SU-2026:3577-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0afterburn5.10.0.git73.b97f772-160000.1.1SUSE-SU-2026:22827-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0agama17+699.92879916c-160000.13.1SUSE-SU-2026:24236-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0aws-nitro-enclaves-cli1.5.0~git0.2950b36-160000.1.1SUSE-SU-2026:23643-1 SUSE-SU-2026:23659-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0gstreamer-devtools1.26.7-160000.2.1SUSE-SU-2026:23572-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0rustup1.29.1~0-160000.1.1SUSE-SU-2026:24014-1
5 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 16.0afterburn5.10.0.git73.b97f772-160000.1.1openSUSE-SU-2026:21386-1
openSUSELeap 16.0agama17+699.92879916c-160000.13.1openSUSE-SU-2026:22075-1
openSUSELeap 16.0aws-nitro-enclaves-cli1.5.0~git0.2950b36-160000.1.1openSUSE-SU-2026:21782-1
openSUSELeap 16.0forgejo-cli0.6.0-bp160.1.1openSUSE-SU-2026:21605-1
openSUSELeap 16.0git-cliff2.13.1-bp160.1.1openSUSE-SU-2026:21584-1
openSUSELeap 16.0gitoxide0.56.0-bp160.1.1openSUSE-SU-2026:21558-1
openSUSELeap 16.0gnome-podcasts0.7.1-bp160.1.1openSUSE-SU-2026:22255-1
openSUSELeap 16.0gstreamer-devtools1.26.7-160000.2.1openSUSE-SU-2026:21689-1
openSUSELeap 16.0kak-lsp21.0.2-bp160.1.1openSUSE-SU-2026:21560-1
openSUSELeap 16.0nm-configurator0.3.5-160000.1.1openSUSE-SU-2026:21428-1
openSUSELeap 16.0rustup1.29.1~0-160000.1.1openSUSE-SU-2026:22016-1
openSUSELeap 16.0sccache0.18.0~2-160000.1.1openSUSE-SU-2026:21982-1
32 more for openSUSE in the JSON and on openSUSE's page.
Azure Linux2azl-compliance1.0.2-3AZL-76712
Azure Linux2rustno fix listedAZL-76752
Azure Linux3kata-containers3.19.1.kata2-6AZL-76691
Azure Linux3netavark1.10.3-7AZL-76703
Azure Linux3rpm-ostree2024.4-8AZL-76715
Azure Linux3rust1.75.0-27AZL-76718
Azure Linux3rust1.90.0-6AZL-76721
Azure Linux3rust-afterburn5.8.2-2AZL-85059
Azure Linux3trident0.22.0-1AZL-78615

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-680 (11).

References

Check your stackJSON