Bytes is vulnerable to integer overflow in BytesMut::reserve
Collected exploitation and prediction evidence
Risk source coverageCISA KEV is observed exploitation evidence. FIRST EPSS is a dated prediction of exploitation in the next 30 days. Missing scores are unknown. This collector requests predictions only for explicit CVE aliases in the public NuGet archive; Microsoft release views retain their existing prediction scope.
No collected risk observation for these identifiers. This does not establish absence of exploitation or a zero probability.
cve-program · CVE-2026-25541
PublishedBytes 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.
- Source published
- 4 Feb 2026 22:03:53 UTC
- Source modified
- 5 Feb 2026 15:13:34 UTC
- Observed here
- 23 Oct 2026 15:48:27 UTC
- Source terms
- CVE Program Terms of Use
Original source record · Cite this exact observation · Complete original publisher JSON
This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: cve-program · CVE Program Terms of Use. Source text is retained; field grouping and change labels are provided by ChangeIntel.
CVSS 4.0 · 5.5 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
euvd · EUVD-2026-5321
PublishedBytes 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.
EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.
Original publisher date fields
datePublished: Feb 4, 2026, 10:03:53 PM
dateUpdated: Feb 5, 2026, 3:13:34 PM
53 related source bulletins · separate from aliases
openSUSE-SU-2026:12205-1: switcheroo-2.6.0-1.1 on GA media
CVE-2026-25541
openSUSE-SU-2026:21794-1: Security update for supergfxctl
CVE-2026-25541
openSUSE-SU-2026:11838-1: pijul-1.0.0~beta.23-1.1 on GA media
CVE-2022-50237 · CVE-2025-3416 · CVE-2026-25541
SUSE-SU-2026:22935-1: Security update for nm-configurator
CVE-2026-25541
openSUSE-SU-2026:21782-1: Security update for aws-nitro-enclaves-cli
CVE-2026-25541 · CVE-2026-25727 · CVE-2026-41676
openSUSE-SU-2026:11495-1: git-cliff-2.13.1-1.1 on GA media
CVE-2026-25541
SUSE-SU-2026:23643-1: Security update for aws-nitro-enclaves-cli
CVE-2026-25541 · CVE-2026-25727 · CVE-2026-41676
SUSE-SU-2026:24236-1: Security update for agama
CVE-2025-58160 · CVE-2026-25541
openSUSE-SU-2026:11656-1: aws-nitro-enclaves-binaryblobs-upstream-1.5.0~git0.2950b36-1.1 on GA media
CVE-2026-25541 · CVE-2026-25727
openSUSE-SU-2026:11522-1: obs-service-cargo-7.2.2-2.1 on GA media
CVE-2026-25541
openSUSE-SU-2026:11905-1: tealdeer-1.8.0-2.1 on GA media
CVE-2026-25541
openSUSE-SU-2026:11549-1: markdown-oxide-0.25.12-1.1 on GA media
CVE-2026-25541
openSUSE-SU-2026:11492-1: aws-efs-utils-3.2.0-1.1 on GA media
CVE-2026-16317 · CVE-2026-16318 · CVE-2026-25541
openSUSE-SU-2026:21558-1: Security update for gitoxide
CVE-2024-32650 · CVE-2025-22620 · CVE-2025-31130 · CVE-2026-25541 · CVE-2026-40034
SUSE-SU-2026:2977-1: Security update for afterburn
CVE-2026-25541 · CVE-2026-41676 · CVE-2026-41677 · CVE-2026-41678 · CVE-2026-41681 · CVE-2026-41898 · CVE-2026-42327 · CVE-2026-44662 · CVE-2026-45784
SUSE-SU-2026:22787-1: Security update for afterburn
CVE-2026-25541 · CVE-2026-41676 · CVE-2026-41677 · CVE-2026-41678 · CVE-2026-41681 · CVE-2026-41898 · CVE-2026-42327 · CVE-2026-44662 · CVE-2026-45784
SUSE-SU-2026:23659-1: Security update for aws-nitro-enclaves-cli
CVE-2026-25541 · CVE-2026-25727 · CVE-2026-41676
openSUSE-SU-2026:21428-1: Security update for nm-configurator
CVE-2026-25541
openSUSE-SU-2026:11280-1: nm-configurator-0.3.5-2.1 on GA media
CVE-2026-25541
openSUSE-SU-2026:21560-1: Security update for kak-lsp
CVE-2025-3416 · CVE-2025-55159 · CVE-2026-25541
SUSE-SU-2026:23071-1: Security update for afterburn
CVE-2022-24713 · CVE-2024-12224 · CVE-2025-3416 · CVE-2025-5791 · CVE-2026-25541 · CVE-2026-41676 · CVE-2026-41677 · CVE-2026-41678 · CVE-2026-41681 · CVE-2026-41898 · CVE-2026-42327 · CVE-2026-44662 · CVE-2026-45784
openSUSE-SU-2026:11525-1: rustup-1.29.0~0-1.1 on GA media
CVE-2026-25541
openSUSE-SU-2026:11475-1: kak-lsp-21.0.2-1.1 on GA media
CVE-2025-3416 · CVE-2025-55159 · CVE-2026-25541
openSUSE-SU-2026:22075-1: Security update for agama
CVE-2025-58160 · CVE-2026-25541
openSUSE-SU-2026:11513-1: cargo-c-0.10.23-2.1 on GA media
CVE-2026-25541
SUSE-SU-2026:22917-1: Security update for afterburn
CVE-2022-24713 · CVE-2024-12224 · CVE-2025-3416 · CVE-2025-5791 · CVE-2026-25541 · CVE-2026-41676 · CVE-2026-41677 · CVE-2026-41678 · CVE-2026-41681 · CVE-2026-41898 · CVE-2026-42327 · CVE-2026-44662 · CVE-2026-45784
openSUSE-SU-2026:11512-1: cargo-audit-0.22.2~git0.281452c-2.1 on GA media
CVE-2026-25541
SUSE-SU-2026:23572-1: Security update for gstreamer-devtools
CVE-2025-4574 · CVE-2025-58160 · CVE-2026-25541 · CVE-2026-25727 · CVE-2026-72813 · CVE-2026-72814
openSUSE-SU-2026:11528-1: wasm-bindgen-0.2.100-2.1 on GA media
CVE-2026-25541
openSUSE-SU-2026:11679-1: agama-24+0.a836cced5-54.1 on GA media
CVE-2025-58160 · CVE-2026-25541
openSUSE-SU-2026:11818-1: shadowsocks-rust-1.25.0-1.1 on GA media
CVE-2025-3416 · CVE-2026-25541
openSUSE-SU-2026:21584-1: Security update for git-cliff
CVE-2025-55159 · CVE-2026-25541
openSUSE-SU-2026:22189-1: Security update for shadowsocks-rust, shadowsocks-libev
CVE-2025-3416 · CVE-2026-25541 · CVE-2026-93599 · CVE-2026-93600 · CVE-2026-93601 · CVE-2026-93602
openSUSE-SU-2026:11529-1: forgejo-cli-0.6.0-2.1 on GA media
CVE-2026-25541
SUSE-SU-2026:2976-1: Security update for afterburn
CVE-2026-25541 · CVE-2026-41676 · CVE-2026-41677 · CVE-2026-41678 · CVE-2026-41681 · CVE-2026-41898 · CVE-2026-42327 · CVE-2026-44662 · CVE-2026-45784
openSUSE-SU-2026:21815-1: Security update for waylyrics
CVE-2026-25541
openSUSE-SU-2026:11482-1: wild-0.10.0-2.1 on GA media
CVE-2026-25541
openSUSE-SU-2026:21386-1: Security update for afterburn
CVE-2026-25541 · CVE-2026-41676 · CVE-2026-41677 · CVE-2026-41678 · CVE-2026-41681 · CVE-2026-41898 · CVE-2026-42327 · CVE-2026-44662 · CVE-2026-45784
openSUSE-SU-2026:11474-1: gitoxide-0.56.0-1.1 on GA media
CVE-2026-25541 · CVE-2026-40034
openSUSE-SU-2026:22016-1: Security update for rustup
CVE-2024-12224 · CVE-2025-58160 · CVE-2026-25541 · CVE-2026-25727 · CVE-2026-41676 · CVE-2026-41677 · CVE-2026-41678 · CVE-2026-41681 · CVE-2026-41898 · CVE-2026-42327 · CVE-2026-44662 · CVE-2026-45784 · CVE-2026-93599 · CVE-2026-93600 · CVE-2026-93601 · CVE-2026-93602
openSUSE-SU-2026:11255-1: afterburn-5.10.0.git73.b97f772-1.1 on GA media
CVE-2026-25541 · CVE-2026-41676 · CVE-2026-41677 · CVE-2026-41898 · CVE-2026-42327 · CVE-2026-45784
SUSE-SU-2026:2975-1: Security update for afterburn
CVE-2026-25541 · CVE-2026-41676 · CVE-2026-41677 · CVE-2026-41678 · CVE-2026-41681 · CVE-2026-41898 · CVE-2026-42327 · CVE-2026-44662 · CVE-2026-45784
msrc_CVE-2026-25541: Bytes is vulnerable to integer overflow in BytesMut::reserve
CVE-2026-25541
openSUSE-SU-2026:21982-1: Security update for sccache
CVE-2024-12224 · CVE-2026-25541 · CVE-2026-25727 · CVE-2026-41676 · CVE-2026-41677 · CVE-2026-41678 · CVE-2026-41681 · CVE-2026-41898 · CVE-2026-42327 · CVE-2026-44662 · CVE-2026-45784 · CVE-2026-66746 · CVE-2026-66754 · CVE-2026-67181 · CVE-2026-67182 · CVE-2026-93599 · CVE-2026-93600 · CVE-2026-93601 · CVE-2026-93602
openSUSE-SU-2026:21689-1: Security update for gstreamer-devtools
CVE-2025-4574 · CVE-2025-58160 · CVE-2026-25541 · CVE-2026-25727 · CVE-2026-72813 · CVE-2026-72814
openSUSE-SU-2026:11835-1: librepods-0.1.0+git20260515.672e65a-1.1 on GA media
CVE-2026-25541
openSUSE-SU-2026:11527-1: sccache-0.17.0~1-2.1 on GA media
CVE-2026-25541 · CVE-2026-66746 · CVE-2026-66754 · CVE-2026-67181 · CVE-2026-67182
openSUSE-RU-2026:21658-1: Recommended update for sequoia-sq
CVE-2026-25541
SUSE-SU-2026:23983-1: Security update for sccache
CVE-2024-12224 · CVE-2026-25541 · CVE-2026-25727 · CVE-2026-41676 · CVE-2026-41677 · CVE-2026-41678 · CVE-2026-41681 · CVE-2026-41898 · CVE-2026-42327 · CVE-2026-44662 · CVE-2026-45784 · CVE-2026-66746 · CVE-2026-66754 · CVE-2026-67181 · CVE-2026-67182 · CVE-2026-93599 · CVE-2026-93600 · CVE-2026-93601 · CVE-2026-93602
SUSE-SU-2026:24014-1: Security update for rustup
CVE-2024-12224 · CVE-2025-58160 · CVE-2026-25541 · CVE-2026-25727 · CVE-2026-41676 · CVE-2026-41677 · CVE-2026-41678 · CVE-2026-41681 · CVE-2026-41898 · CVE-2026-42327 · CVE-2026-44662 · CVE-2026-45784 · CVE-2026-93599 · CVE-2026-93600 · CVE-2026-93601 · CVE-2026-93602
openSUSE-SU-2026:21605-1: Security update for forgejo-cli
CVE-2025-3416 · CVE-2025-55159 · CVE-2026-25541
openSUSE-SU-2026:11655-1: libtree-sitter0_26-0.26.8-5.1 on GA media
CVE-2026-25541
SUSE-SU-2026:22827-1: Security update for afterburn
CVE-2026-25541 · CVE-2026-41676 · CVE-2026-41677 · CVE-2026-41678 · CVE-2026-41681 · CVE-2026-41898 · CVE-2026-42327 · CVE-2026-44662 · CVE-2026-45784
- Source published
- Feb 4, 2026, 10:03:53 PM (timezone not stated)
- Source modified
- Feb 5, 2026, 3:13:34 PM (timezone not stated)
- Observed here
- 9 Nov 2026 06:11:30 UTC
- Source terms
- ENISA EUVD · source terms and attribution apply
Original source record · Cite this exact observation · Complete original publisher JSON
This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: euvd · ENISA EUVD · source terms and attribution apply. Source text is retained; field grouping and change labels are provided by ChangeIntel.
EUVD CVSS 4.0 · 5.5 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
nvd · CVE-2026-25541
PublishedBytes 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.
NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Analyzed
Weakness classifications: CWE-680
Original publisher date fields
published: 2026-02-04T22:16:00.383
lastModified: 2026-06-17T10:24:49.410
1 source CPE criteria · context only
- cpe:2.3:a:tokio-rs:bytes:*:*:*:*:*:rust:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
- Source published
- 4 Feb 2026 22:16:00 UTC
- Source modified
- 17 Jun 2026 10:24:49 UTC
- Observed here
- 25 Oct 2026 06:17:16 UTC
- Source terms
- NIST NVD usage terms; underlying source attribution retained
Original source record · Cite this exact observation · Complete original publisher JSON
This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: nvd · NIST NVD usage terms; underlying source attribution retained. Source text is retained; field grouping and change labels are provided by ChangeIntel.
CVSS 4.0 · [email protected] · Secondary · 5.5 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVSS 3.1 · [email protected] · Primary · 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
osv · GHSA-434x-w66g-qw3r
Published# Details In the unique reclaim path of `BytesMut::reserve`, the condition ```rs if 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. ## PoC ```rs use bytes::*; fn main() { let mut a = BytesMut::from(&b"hello world"[..]); let mut b = a.split_off(5); // Ensure b becomes the unique owner of the backing storage drop(a); // Trigger overflow in new_cap + offset inside reserve b.reserve(usize::MAX - 6); // This call relies on the corrupted cap and may cause UB & HBO b.put_u8(b'h'); } ``` # Workarounds Users of `BytesMut::reserve` are only affected if integer overflow checks are configured to wrap. When integer overflow is configured to panic, this issue does not apply. This vulnerability is also known as [RUSTSEC-2026-0007](https://rustsec.org/advisories/RUSTSEC-2026-0007.html).
- Source published
- 3 Feb 2026 19:17:46 UTC
- Source modified
- 10 Sep 2026 03:50:33 UTC
- Observed here
- 24 Oct 2026 13:19:54 UTC
- Source terms
- GitHub Advisory Database · CC-BY-4.0
Original source record · Cite this exact observation · Complete original publisher JSON
This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: osv · GitHub Advisory Database · CC-BY-4.0. Source text is retained; field grouping and change labels are provided by ChangeIntel.
CVSS_V4 · 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
Publisher rating · MODERATE
osv · RUSTSEC-2026-0007
PublishedIn the unique reclaim path of `BytesMut::reserve`, the condition ```rs if 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. ## PoC ```rs use bytes::*; fn main() { let mut a = BytesMut::from(&b"hello world"[..]); let mut b = a.split_off(5); // Ensure b becomes the unique owner of the backing storage drop(a); // Trigger overflow in new_cap + offset inside reserve b.reserve(usize::MAX - 6); // This call relies on the corrupted cap and may cause UB & HBO b.put_u8(b'h'); } ``` # Workarounds Users of `BytesMut::reserve` are only affected if integer overflow checks are configured to wrap. When integer overflow is configured to panic, this issue does not apply.
- Source published
- 3 Feb 2026 12:00:00 UTC
- Source modified
- 12 Oct 2026 18:00:09 UTC
- Observed here
- 24 Oct 2026 13:19:54 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: osv · OSV · upstream source license applies. Source text is retained; field grouping and change labels are provided by ChangeIntel.