- Accueil
- Vulnérabilités
- CVE-2026-25541
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…
Résumé
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.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
crates.io (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| bytes | de 1.2.1 (inclus) à 1.11.1 (exclu) |
1.11.1 |
OSV |
Tokio-rs (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| Bytes | de 1.2.1 (inclus) à 1.11.1 (exclu) |
— | NVD |
Correctif
Mise à jour — crates.io/bytes 1.11.1source officielle
Source : OSV
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Exploit signalé par les sources
Ces liens sont étiquetés « exploit » par le NVD ou par CVE.org. Nous ne les avons pas vérifiés ni copiés ; ouvrez-les avec prudence.
Chronologie
- — Publication de la CVE (cve)
- — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1366)
- — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1385)
Avis CERT-FR
- CERTFR-2026-AVI-1385 — Multiples vulnérabilités dans les produits VMware (26 octobre 2026) 26 oct. 2026
- CERTFR-2026-AVI-1366 — Multiples vulnérabilités dans les produits Splunk (22 octobre 2026) 22 oct. 2026
- RUSTSEC-2026-0007 — Integer overflow in `BytesMut::reserve` 3 févr. 2026
Références
- https://github.com/tokio-rs/bytes/security/advisories/GHSA-434x-w66g-qw3rExploit, Vendor Advisory
- https://github.com/tokio-rs/bytes/commit/d0293b0e35838123c51ca5dfdf468ecafee4398fWEB
- https://github.com/tokio-rs/bytes/releases/tag/v1.11.1Product, Release Notes
- https://rustsec.org/advisories/RUSTSEC-2026-0007.htmlADVISORY
- https://crates.io/crates/bytesPACKAGE
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- NVD
- Score CVSS
- NVD
- Faiblesse (CWE)
- CNA (éditeur ou attributeur)
- Vecteur CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H(CVSS 3.1, NVD)- Faiblesse
- CWE-680 · Autre (CWE-680)