PT-2026-6320 · Bytes · Bytes

·

CVE-2026-25541

·

Published

2026-01-01

·

Updated

2026-09-08

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Bytes versions 1.2.1 through 1.11.0
Description The Bytes library contains a flaw in the BytesMut::reserve function that can lead to an integer overflow. Specifically, an unchecked addition within the reclaim path of BytesMut::reserve can cause the allocated capacity to be incorrectly calculated when new cap + offset overflows a usize value in release builds. This can result in the cap value being set to a value exceeding the actual allocated capacity. Subsequent calls to functions like spare capacity mut() may then create out-of-bounds slices, leading to undefined behavior. This issue is observable in release builds, while debug builds trigger a panic due to overflow checks.
Recommendations Update to Bytes version 1.11.1 or later.

Exploit

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

AZL-76691
AZL-76703
AZL-76712
AZL-76715
AZL-76718
AZL-76721
AZL-76752
AZL-78615
AZL-85059
CLEANSTART-2026-BK22414
CVE-2026-25541
GHSA-434X-W66G-QW3R
OPENSUSE-RU-2026:21658-1
OPENSUSE-SU-2026:11255-1
OPENSUSE-SU-2026:11280-1
OPENSUSE-SU-2026:11474-1
OPENSUSE-SU-2026:11475-1
OPENSUSE-SU-2026:11482-1
OPENSUSE-SU-2026:11492-1
OPENSUSE-SU-2026:11495-1
OPENSUSE-SU-2026:11512-1
OPENSUSE-SU-2026:11513-1
OPENSUSE-SU-2026:11522-1
OPENSUSE-SU-2026:11525-1
OPENSUSE-SU-2026:11527-1
OPENSUSE-SU-2026:11528-1
OPENSUSE-SU-2026:11529-1
OPENSUSE-SU-2026:11549-1
OPENSUSE-SU-2026:11655-1
OPENSUSE-SU-2026:11656-1
OPENSUSE-SU-2026:11679-1
OPENSUSE-SU-2026:21386-1
OPENSUSE-SU-2026:21428-1
OPENSUSE-SU-2026:21558-1
OPENSUSE-SU-2026:21560-1
OPENSUSE-SU-2026:21584-1
OPENSUSE-SU-2026:21605-1
OPENSUSE-SU-2026:21689-1
OPENSUSE-SU-2026:21782-1
OPENSUSE-SU-2026:21794-1
OPENSUSE-SU-2026:21815-1
RUSTSEC-2026-0007
SUSE-SU-2026:22787-1
SUSE-SU-2026:22827-1
SUSE-SU-2026:22917-1
SUSE-SU-2026:22935-1
SUSE-SU-2026:23071-1
SUSE-SU-2026:2975-1
SUSE-SU-2026:2976-1
SUSE-SU-2026:2977-1
SUSE-SU-2026:3577-1
SUSE-SU-2026:3674-1

Affected Products

Bytes