DEBIAN-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.
DEBIAN-CVE-2026-25541
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:DEBIAN-CVE-2026-25541
rust-bytes
Source reference: /affected/0/package/name
- Affected versions
- 1.10.1-1
Source reference:
/affected/0/versions1.11.0-1Source reference:
/affected/0/versions1.11.1-1Source reference:
/affected/0/versions1.12.1-1Source reference:
/affected/0/versions1.2.1-1Source reference:
/affected/0/versions1.4.0-1Source reference:
/affected/0/versions1.5.0-1Source reference:
/affected/0/versions1.7.2-1Source reference:
/affected/0/versions1.8.0-1Source reference:
/affected/0/versions1.9.0-1Source reference:
/affected/0/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
rust-bytes
Source reference: /affected/1/package/name
- Affected versions
- 1.10.1-1
Source reference:
/affected/1/versions1.11.0-1Source reference:
/affected/1/versions1.11.1-1Source reference:
/affected/1/versions1.12.1-1Source reference:
/affected/1/versions1.9.0-1Source reference:
/affected/1/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
rust-bytes
Source reference: /affected/2/package/name
- Affected versions
- 1.10.1-1
Source reference:
/affected/2/versions1.11.0-1Source reference:
/affected/2/versions1.9.0-1Source reference:
/affected/2/versions - Fixed versions
- 1.11.1-1
Source reference:
/affected/2/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-bytes",
"purl": "pkg:deb/debian/rust-bytes?arch=source&distro=bookworm",
"ecosystem": "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",
"1.5.0-1",
"1.7.2-1",
"1.8.0-1",
"1.9.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-25541.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-bytes",
"purl": "pkg:deb/debian/rust-bytes?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"1.10.1-1",
"1.11.0-1",
"1.11.1-1",
"1.12.1-1",
"1.9.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-25541.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.11.1-1"
}
]
}
],
"package": {
"name": "rust-bytes",
"purl": "pkg:deb/debian/rust-bytes?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"1.10.1-1",
"1.11.0-1",
"1.9.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-25541.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #57480 · Revision 1
- Added to Heist Feed
- Publisher date