{"id":"CVE-2026-25541","revision":"a0858f8bc28b464cb9bc0e0b4f01ad4b","records":[{"revision":"a0858f8bc28b464cb9bc0e0b4f01ad4b","observedAt":"2026-10-25T06:17:16.233+00:00","statement":{"source":"nvd","id":"CVE-2026-25541","aliases":[],"title":"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 +…","description":"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.","state":0,"publishedAt":"2026-02-04T22:16:00.383+00:00","modifiedAt":"2026-06-17T10:24:49.41+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · security-advisories@github.com · Secondary","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","score":5.5,"severity":"MEDIUM"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":"HIGH"}],"references":["https://github.com/tokio-rs/bytes/commit/d0293b0e35838123c51ca5dfdf468ecafee4398f","https://github.com/tokio-rs/bytes/releases/tag/v1.11.1","https://github.com/tokio-rs/bytes/security/advisories/GHSA-434x-w66g-qw3r","https://rustsec.org/advisories/RUSTSEC-2026-0007.html"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-25541","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-680"],"productCriteria":["cpe:2.3:a:tokio-rs:bytes:*:*:*:*:*:rust:*:*"],"sourceDates":{"published":"2026-02-04T22:16:00.383","lastModified":"2026-06-17T10:24:49.410"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-25541","identifiers":["CVE-2026-25541"]},"retained":false,"historicalAffected":[]}],"coverage":[]}