Skip to content
OpenAdvisories
Medium · 5.5 Public exploit CVE-2026-25541 EUVD-2026-5321GHSA-434x-w66g-qw3rRUSTSEC-2026-0007

Bytes is vulnerable to integer overflow in BytesMut::reserve

Published Feb 4, 2026 · Updated Feb 5, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
tokio-rs bytes >= 1.2.1, < 1.11.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rust-bytes 1.11.1-1 —
Debian 13 rust-bytes No fix yet —
Debian 12 rust-bytes No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS rust-bytes No fix yet —
Ubuntu 25.10 rust-bytes No fix yet —
Ubuntu 24.04 LTS rust-bytes No fix yet —
Ubuntu 22.04 LTS rust-bytes No fix yet —
Ubuntu 20.04 LTS rust-bytes No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 aws-efs-utils 3.3.4-150600.17.12.1 SUSE-SU-2026:5101-1
SLES 15 SP7 aws-nitro-enclaves-cli 1.5.0~git0.2950b36-150600.10.15.1 SUSE-SU-2026:3992-1
SLES 15 SP7 sccache 0.17.0~1-150600.10.14.1 SUSE-SU-2026:3674-1
SLES 15 SP6 aws-efs-utils 3.3.4-150600.17.12.1 SUSE-SU-2026:5101-1
SLES 15 SP6 aws-nitro-enclaves-cli 1.5.0~git0.2950b36-150600.10.15.1 SUSE-SU-2026:3992-1
SLES 15 SP6 sccache 0.17.0~1-150600.10.14.1 SUSE-SU-2026:3674-1
SLES 15 SP6 snpguest 0.3.2-150600.3.14.1 SUSE-SU-2026:3577-1
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 afterburn 5.10.0.git73.b97f772-160000.1.1 SUSE-SU-2026:22827-1
SLES for SAP 16.0 agama 17+699.92879916c-160000.13.1 SUSE-SU-2026:24236-1
SLES for SAP 16.0 aws-nitro-enclaves-cli 1.5.0~git0.2950b36-160000.1.1 SUSE-SU-2026:23659-1, SUSE-SU-2026:23643-1
SLES for SAP 16.0 gstreamer-devtools 1.26.7-160000.2.1 SUSE-SU-2026:23572-1
SLES for SAP 16.0 rustup 1.29.1~0-160000.1.1 SUSE-SU-2026:24014-1
SLES for SAP 16.0 sccache 0.18.0~2-160000.1.1 SUSE-SU-2026:23983-1
SLES for SAP 15 SP6 sccache 0.17.0~1-150600.10.14.1 SUSE-SU-2026:3674-1
SLES for SAP 15 SP6 snpguest 0.3.2-150600.3.14.1 SUSE-SU-2026:3577-1
SLES 16.0 afterburn 5.10.0.git73.b97f772-160000.1.1 SUSE-SU-2026:22827-1
SLES 16.0 agama 17+699.92879916c-160000.13.1 SUSE-SU-2026:24236-1
SLES 16.0 aws-nitro-enclaves-cli 1.5.0~git0.2950b36-160000.1.1 SUSE-SU-2026:23659-1, SUSE-SU-2026:23643-1
SLES 16.0 gstreamer-devtools 1.26.7-160000.2.1 SUSE-SU-2026:23572-1
SLES 16.0 rustup 1.29.1~0-160000.1.1 SUSE-SU-2026:24014-1
SLES 16.0 sccache 0.18.0~2-160000.1.1 SUSE-SU-2026:23983-1
SLE Micro 6.2 afterburn 5.10.0.git73.b97f772-160000.1.1 SUSE-SU-2026:22787-1
SLE Micro 6.2 nm-configurator 0.3.5-160000.1.1 SUSE-SU-2026:22935-1
SLE Micro 6.1 afterburn 5.10.0.git73.b97f772-slfo.1.1_1.1 SUSE-SU-2026:23071-1
SLE Micro 6.0 afterburn 5.10.0.git73.b97f772-1.1 SUSE-SU-2026:22917-1
SLE Micro 5.5 afterburn 5.10.0.git73.b97f772-150500.3.6.1 SUSE-SU-2026:2975-1
SLE Micro 5.4 afterburn 5.10.0.git73.b97f772-150400.3.6.1 SUSE-SU-2026:2977-1
SLE Micro 5.3 afterburn 5.10.0.git73.b97f772-150400.3.6.1 SUSE-SU-2026:2976-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed afterburn 5.10.0.git73.b97f772-1.1 openSUSE-SU-2026:11255-1
openSUSE Tumbleweed agama 24+0.a836cced5-54.1 openSUSE-SU-2026:11679-1
openSUSE Tumbleweed aws-efs-utils 3.2.0-1.1 openSUSE-SU-2026:11492-1
openSUSE Tumbleweed aws-nitro-enclaves-cli 1.5.0~git0.2950b36-1.1 openSUSE-SU-2026:11656-1
openSUSE Tumbleweed cargo-audit 0.22.2~git0.281452c-2.1 openSUSE-SU-2026:11512-1
openSUSE Tumbleweed cargo-c 0.10.23-2.1 openSUSE-SU-2026:11513-1
openSUSE Tumbleweed forgejo-cli 0.6.0-2.1 openSUSE-SU-2026:11529-1
openSUSE Tumbleweed git-cliff 2.13.1-1.1 openSUSE-SU-2026:11495-1
openSUSE Tumbleweed gitoxide 0.56.0-1.1 openSUSE-SU-2026:11474-1
openSUSE Tumbleweed kak-lsp 21.0.2-1.1 openSUSE-SU-2026:11475-1
openSUSE Tumbleweed librepods 0.1.0+git20260515.672e65a-1.1 openSUSE-SU-2026:11835-1
openSUSE Tumbleweed markdown-oxide 0.25.12-1.1 openSUSE-SU-2026:11549-1
openSUSE Tumbleweed nm-configurator 0.3.5-2.1 openSUSE-SU-2026:11280-1
openSUSE Tumbleweed obs-service-cargo 7.2.2-2.1 openSUSE-SU-2026:11522-1
openSUSE Tumbleweed pijul 1.0.0~beta.23-1.1 openSUSE-SU-2026:11838-1
openSUSE Tumbleweed rustup 1.29.0~0-1.1 openSUSE-SU-2026:11525-1
openSUSE Tumbleweed sccache 0.17.0~1-2.1 openSUSE-SU-2026:11527-1
openSUSE Tumbleweed shadowsocks-rust 1.25.0-1.1 openSUSE-SU-2026:11818-1
openSUSE Tumbleweed switcheroo 2.6.0-1.1 openSUSE-SU-2026:12205-1
openSUSE Tumbleweed tealdeer 1.8.0-2.1 openSUSE-SU-2026:11905-1
openSUSE Tumbleweed tree-sitter 0.26.8-5.1 openSUSE-SU-2026:11655-1
openSUSE Tumbleweed wasm-bindgen 0.2.100-2.1 openSUSE-SU-2026:11528-1
openSUSE Tumbleweed wild 0.10.0-2.1 openSUSE-SU-2026:11482-1
openSUSE Tumbleweed zed 1.24.2-1.1 openSUSE-SU-2026:12355-1
openSUSE Leap 16.0 afterburn 5.10.0.git73.b97f772-160000.1.1 openSUSE-SU-2026:21386-1
openSUSE Leap 16.0 agama 17+699.92879916c-160000.13.1 openSUSE-SU-2026:22075-1
openSUSE Leap 16.0 aws-nitro-enclaves-cli 1.5.0~git0.2950b36-160000.1.1 openSUSE-SU-2026:21782-1
openSUSE Leap 16.0 forgejo-cli 0.6.0-bp160.1.1 openSUSE-SU-2026:21605-1
openSUSE Leap 16.0 git-cliff 2.13.1-bp160.1.1 openSUSE-SU-2026:21584-1
openSUSE Leap 16.0 gitoxide 0.56.0-bp160.1.1 openSUSE-SU-2026:21558-1
openSUSE Leap 16.0 gnome-podcasts 0.7.1-bp160.1.1 openSUSE-SU-2026:22255-1
openSUSE Leap 16.0 gstreamer-devtools 1.26.7-160000.2.1 openSUSE-SU-2026:21689-1
openSUSE Leap 16.0 kak-lsp 21.0.2-bp160.1.1 openSUSE-SU-2026:21560-1
openSUSE Leap 16.0 nm-configurator 0.3.5-160000.1.1 openSUSE-SU-2026:21428-1
openSUSE Leap 16.0 rustup 1.29.1~0-160000.1.1 openSUSE-SU-2026:22016-1
openSUSE Leap 16.0 sccache 0.18.0~2-160000.1.1 openSUSE-SU-2026:21982-1
openSUSE Leap 16.0 sequoia-sq 1.4.0-bp160.1.1 openSUSE-RU-2026:21658-1
openSUSE Leap 16.0 shadowsocks-libev 3.3.6-bp160.3.1 openSUSE-SU-2026:22189-1
openSUSE Leap 16.0 shadowsocks-rust 1.25.0-bp160.1.1 openSUSE-SU-2026:22189-1
openSUSE Leap 16.0 supergfxctl 1762634235.5d503b1-bp160.1.1 openSUSE-SU-2026:21794-1
openSUSE Leap 16.0 waylyrics 0.4.0-bp160.1.1 openSUSE-SU-2026:21815-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 kata-containers 3.19.1.kata2-6 —
Azure Linux 3 netavark 1.10.3-7 —
Azure Linux 3 rpm-ostree 2024.4-8 —
Azure Linux 3 rust 1.75.0-27 —
Azure Linux 3 rust-afterburn 5.8.2-2 —
Azure Linux 3 trident 0.22.0-1 —
Azure Linux 2 (CBL-Mariner) azl-compliance 1.0.2-3 —
Azure Linux 2 (CBL-Mariner) rust No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling atuin 18.11.0-r1 —
Wolfi rolling berg 0.5.4-r2 —
Wolfi rolling buck2 20260201-r1 —
Wolfi rolling cargo-audit 0.22.0-r1 —
Wolfi rolling cargo-c 0.10.20-r2 —
Wolfi rolling deno 2.6.8-r1 —
Wolfi rolling efs-utils +1 2.4.1-r4 —
Wolfi rolling geckodriver 0.36.0-r4 —
Wolfi rolling helix 25.07.1-r2 —
Wolfi rolling kdash 0.6.2-r10 —
Wolfi rolling libwasmtime 41.0.2-r1 —
Wolfi rolling linkerd-await 0.3.1-r1 —
Wolfi rolling linkerd-extension-init 0.1.7-r3 —
Wolfi rolling linkerd-network-validator 0.1.5-r1 —
Wolfi rolling linkerd2-controller 26.1.4-r1 —
Wolfi rolling linkerd2-proxy 2.338.0-r2 —
Wolfi rolling lychee 0.22.0-r3 —
Wolfi rolling mdbook 0.5.2-r2 —
Wolfi rolling netavark 1.17.1-r2 —
Wolfi rolling ntpd-rs 1.7.0-r1 —
Wolfi rolling nushell +1 0.110.0-r1 —
Wolfi rolling oranda 0.6.5-r13 —
Wolfi rolling parseable 2.5.10-r2 —
Wolfi rolling pgcat 1.2.0-r10 —
Wolfi rolling pixi 0.63.2-r2 —
Wolfi rolling py3.10-hf-xet +3 1.2.0-r4 —
Wolfi rolling qdrant 1.16.3-r3 —
Wolfi rolling rustup 1.28.2-r4 —
Wolfi rolling samply 0.13.1-r7 —
Wolfi rolling sccache 0.13.0-r2 —
Wolfi rolling sdp-k8s-injector 1.3.10-r2 —
Wolfi rolling shadowsocks-rust-ssurl +2 1.24.0-r2 —
Wolfi rolling sqlx 0.8.6-r3 —
Wolfi rolling tealdeer 1.8.1-r2 —
Wolfi rolling topgrade 16.9.0-r1 —
Wolfi rolling uv +3 0.9.29-r1 —
Wolfi rolling wadm 0.21.1-r2 —
Wolfi rolling wash 0.39.0-r6 —
Wolfi rolling wasmcloud 1.9.2-r1 —
Wolfi rolling wizer 10.0.0-r6 —
Wolfi rolling xh 0.25.3-r1 —
Wolfi rolling yazi 26.1.22-r2 —
Wolfi rolling zed 0.223.3-r0 —
Wolfi rolling zellij 0.43.1-r5 —
Wolfi rolling zizmor +1 1.22.0-r2 —
Wolfi rolling zola 0.22.1-r1 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io bytes >= 1.2.1, < 1.11.1 1.11.1 GHSA-434x-w66g-qw3r

Advisories 50

References