1. Archivio CVE
  2. 2025
  3. CVE-2025-47737

CVE-2025-47737

9.8 Gravità critica CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 9.8 – Critica

Descrizione

lib.rs in the trailer crate through 0.1.2 for Rust mishandles allocating with a size of zero.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
unhandledexpression trailer <= 0.1.2 rust

Tipo di vulnerabilità

CWE-762 Mismatched Memory Management Routines

The product attempts to return a memory resource to the system, but it calls a release function that is not compatible with the function that was originally used to allocate that resource.

Impatto sui sistemi

AmbitoImpatto
Integrità, Disponibilità, Riservatezza Modificare la memoria, Interruzione del servizio: arresto o riavvio, Eseguire codice o comandi non autorizzati

Come si previene

Sviluppo Only call matching memory management functions. Do not mix and match routines. For example, when you allocate a buffer with malloc(), dispose of the original pointer with free().
Sviluppo · Librerie o framework Choose a language or tool that provides automatic memory management, or makes manual memory management less error-prone. For example, glibc in Linux provides protection against free of invalid pointers. When using Xcode to target OS X or iOS, enable automatic reference counting (ARC). To help correctly and consistently manage memory when programming in C++, consider using a smart pointer class such as std
Architettura e progettazione · Librerie o framework Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, glibc in Linux provides protection against free of invalid pointers.
Architettura e progettazione Use a language that provides abstractions for memory allocation and deallocation.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 8 CVE di tipo CWE-762, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org