1. Archivio CVE
  2. 2026
  3. CVE-2026-136908

CVE-2026-136908

5.9 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H 5.9 – Media

Descrizione

libyang through 6.4.13 contains a release of invalid pointer vulnerability in ly_in_memory() and ly_in_memory_chunk() in src/in.c that return the current read position instead of the previous start address. Attackers supplying YANG data parsed from a heap buffer can cause applications freeing the returned pointer to pass an interior address to free(), aborting the process.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
cesnet libyang <= 6.4.13 –
Tutte le 24 vulnerabilità di Cesnet Libyang

Tipo di vulnerabilità

CWE-761 Free of Pointer not at Start of Buffer

The product calls free() on a pointer to a memory resource that was allocated on the heap, but the pointer is not at the start of the buffer.

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 When utilizing pointer arithmetic to traverse a buffer, use a separate variable to track progress through memory and preserve the originally allocated address for later freeing.
Sviluppo When programming in C++, consider using smart pointers provided by the boost library to help correctly and consistently manage memory.
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 2 CVE di tipo CWE-761, con andamento e prevenzione

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