CVE-2026-25541
CVE-2026-25541 · Bytes is vulnerable to integer overflow in BytesMut::reserve
CVSS 5.5 · Medium · EPSS 0.6% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- bytesNo fix published
- rust-bytes Debian 12No fix published
- rust-bytes Debian 13No fix published
- rust-bytes Debian 14Update to 1.11.1-1
- and 5 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="rust-bytes"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- openSUSE-SU-2026:12598-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:22255-1 · openSUSE Leap 16.0 ·
- SUSE-SU-2026:5101-1 · SUSE Linux Enterprise Module for Public Cloud 15 SP6, SUSE Linux Enterprise Module for Public Cloud 15 SP7 ·
- openSUSE-SU-2026:12355-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:22189-1 · openSUSE Leap 16.0 ·
- openSUSE-SU-2026:12205-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:22075-1 · openSUSE Leap 16.0 ·
- SUSE-SU-2026:24236-1 · SUSE Linux Enterprise Server 16.0, SUSE Linux Enterprise Server for SAP applications 16.0 ·
- openSUSE-SU-2026:22016-1 · openSUSE Leap 16.0 ·
- SUSE-SU-2026:24014-1 · SUSE Linux Enterprise Server 16.0, SUSE Linux Enterprise Server for SAP applications 16.0 ·
- openSUSE-SU-2026:21982-1 · openSUSE Leap 16.0 ·
- SUSE-SU-2026:23983-1 · SUSE Linux Enterprise Server 16.0, SUSE Linux Enterprise Server for SAP applications 16.0 ·
- openSUSE-SU-2026:11905-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:11835-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:11838-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:11818-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:21815-1 · openSUSE Leap 16.0 ·
- SUSE-SU-2026:23643-1 · SUSE Linux Enterprise Server 16.0, SUSE Linux Enterprise Server for SAP applications 16.0 ·
- SUSE-SU-2026:23659-1 · SUSE Linux Enterprise Server 16.0, SUSE Linux Enterprise Server for SAP applications 16.0 ·
- openSUSE-SU-2026:21782-1 · openSUSE Leap 16.0 ·
- SUSE-SU-2026:3992-1 · SUSE Linux Enterprise Module for Public Cloud 15 SP6, SUSE Linux Enterprise Module for Public Cloud 15 SP7 ·
- openSUSE-SU-2026:11679-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:21794-1 · openSUSE Leap 16.0 ·
- openSUSE-SU-2026:11656-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:11655-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:21689-1 · openSUSE Leap 16.0 ·
- SUSE-SU-2026:23572-1 · SUSE Linux Enterprise Server 16.0, SUSE Linux Enterprise Server for SAP applications 16.0 ·
- openSUSE-RU-2026:21658-1 · openSUSE Leap 16.0 ·
- SUSE-SU-2026:3674-1 · SUSE Linux Enterprise Module for Development Tools 15 SP7, SUSE Linux Enterprise Server 15 SP6-LTSS, SUSE Linux Enterprise Server for SAP Applications 15 SP6 ·
- openSUSE-SU-2026:11549-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:21605-1 · openSUSE Leap 16.0 ·
- openSUSE-SU-2026:11529-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:11512-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:11513-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:11522-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:11525-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:11527-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:11528-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:21584-1 · openSUSE Leap 16.0 ·
- SUSE-SU-2026:3577-1 · SUSE Linux Enterprise Server 15 SP6-LTSS, SUSE Linux Enterprise Server for SAP Applications 15 SP6 ·
- openSUSE-SU-2026:11492-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:11495-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:21560-1 · openSUSE Leap 16.0 ·
- openSUSE-SU-2026:21558-1 · openSUSE Leap 16.0 ·
- openSUSE-SU-2026:11474-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:11475-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:11482-1 · openSUSE Tumbleweed ·
- SUSE-SU-2026:23071-1 · SUSE Linux Micro 6.1 ·
- SUSE-SU-2026:22917-1 · SUSE Linux Micro 6.0 ·
- openSUSE-SU-2026:21428-1 · openSUSE Leap 16.0 ·
- SUSE-SU-2026:22935-1 · SUSE Linux Micro 6.2 ·
- SUSE-SU-2026:22827-1 · SUSE Linux Enterprise Server 16.0, SUSE Linux Enterprise Server for SAP applications 16.0 ·
- SUSE-SU-2026:22787-1 · SUSE Linux Micro 6.2 ·
- openSUSE-SU-2026:21386-1 · openSUSE Leap 16.0 ·
- openSUSE-SU-2026:11280-1 · openSUSE Tumbleweed ·
- SUSE-SU-2026:2977-1 · SUSE Linux Enterprise Micro 5.4 ·
- SUSE-SU-2026:2976-1 · SUSE Linux Enterprise Micro 5.3 ·
- SUSE-SU-2026:2975-1 · SUSE Linux Enterprise Micro 5.5 ·
- openSUSE-SU-2026:11255-1 · openSUSE Tumbleweed ·
Stack: system
Affected products and versions
bytes
- Versions
- >= 1.2.1, < 1.11.1: Affected
No fix published
rust-bytes Debian 12
- Versions
- 1.10.1-1
- 1.11.0-1
- 1.11.1-1
- 1.12.1-1
- 1.2.1-1
- 1.4.0-1
All versions (10)
- 1.5.0-1
- 1.7.2-1
- 1.8.0-1
- 1.9.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-bytes Debian 13
- Versions
- 1.10.1-1
- 1.11.0-1
- 1.11.1-1
- 1.12.1-1
- 1.9.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-bytes Debian 14
- Versions
- 1.10.1-1
- 1.11.0-1
- 1.9.0-1
- Affected ranges
- ECOSYSTEM: < 1.11.1-1
Update to 1.11.1-1
rust-bytes Ubuntu 20.04 LTS
- Versions
- 0.4.12-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-bytes Ubuntu 22.04 LTS
- Versions
- 0.4.12-1
- 1.1.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-bytes Ubuntu 24.04 LTS
- Versions
- 1.4.0-1
- 1.5.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-bytes Ubuntu 25.10
- Versions
- 1.9.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-bytes Ubuntu 26.04 LTS
- Versions
- 1.9.0-1
- 1.10.1-1
- 1.11.0-1
- 1.11.1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/tokio-rs/bytes/security/advisories/GHSA-434x-w66g-qw3r
- https://github.com/tokio-rs/bytes/commit/d0293b0e35838123c51ca5dfdf468ecafee4398f
- https://github.com/tokio-rs/bytes/releases/tag/v1.11.1
- https://rustsec.org/advisories/RUSTSEC-2026-0007.html
- https://nvd.nist.gov/vuln/detail/CVE-2026-25541