CVE-2026-25541
MEDIUMDescription
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.
How to fix
TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Exploit Intelligence
Moderate risk: more likely to be exploited than 43% of all known CVEs.
References
Related Vulnerabilities
Other CWE-680 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2022-24834 | High | 7.0 | 41% | - | Fix |
| CVE-2021-32761 | High | 7.5 | 31% | - | Fix |
| CVE-2020-6116 | High | 7.8 | 28% | - | - |
| CVE-2021-40417 | Critical | 9.8 | 16% | - | - |
| CVE-2021-32628 | High | 7.5 | 13% | - | Fix |
| CVE-2018-8787 | Critical | 9.8 | 8.4% | - | Fix |
Embed a live status badge for CVE-2026-25541
Markdown
[](https://tridentstack.com/cve/CVE-2026-25541)HTML
<a href="https://tridentstack.com/cve/CVE-2026-25541"><img src="https://tridentstack.com/cve/badge/CVE-2026-25541.svg" alt="CVE-2026-25541"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-02-27.