Vulnerability
CVE-2026-25541
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.
228 advisories report this vulnerability, across 8 ecosystems.
Advisories in SUSE
-
SUSE-SU-2026:22787-1
Security update for afterburn
-
SUSE-SU-2026:22827-1
Security update for afterburn
-
SUSE-SU-2026:22917-1
Security update for afterburn
-
SUSE-SU-2026:22935-1
Security update for nm-configurator
-
SUSE-SU-2026:23071-1
Security update for afterburn
-
SUSE-SU-2026:23572-1
Security update for gstreamer-devtools
-
SUSE-SU-2026:23643-1
Security update for aws-nitro-enclaves-cli
-
SUSE-SU-2026:23659-1
Security update for aws-nitro-enclaves-cli
-
SUSE-SU-2026:23983-1
Security update for sccache
-
SUSE-SU-2026:24014-1
Security update for rustup
-
SUSE-SU-2026:24236-1
Security update for agama
-
SUSE-SU-2026:2975-1
Security update for afterburn
-
SUSE-SU-2026:2976-1
Security update for afterburn
-
SUSE-SU-2026:2977-1
Security update for afterburn
-
SUSE-SU-2026:3577-1
Security update for snpguest
-
SUSE-SU-2026:3674-1
Security update for sccache
-
SUSE-SU-2026:3992-1
Security update for aws-nitro-enclaves-cli
-
SUSE-SU-2026:5101-1
Security update for aws-efs-utils
-
SUSEVEX-CVE-2026-25541
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…