CVE-2026-71261

dr_libs dr_wav.h (all versions through current master) contains an integer overflow in W64 CUE chunk metadata parsing. In drwav__metadata_process_chunk, a stage-1 capacity estimate truncates the 64-bit W64 chunk sizeInBytes to size_t before dividing by DRWAV_CUE_POINT_BYTES; on 32-bit builds this truncation causes the pre-allocated extra metadata capacity to be computed incorrectly.
Configurations

No configuration.

History

23 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) dr_libs dr_wav.h (todas las versiones hasta la actual master) contiene un desbordamiento de entero en el análisis de metadatos de fragmentos CUE W64. En drwav__metadata_process_chunk(), una estimación de capacidad de etapa 1 trunca el tamaño de fragmento W64 de 64 bits sizeInBytes a size_t antes de dividir por DRWAV_CUE_POINT_BYTES; en compilaciones de 32 bits esta truncación causa que la capacidad de metadatos extra preasignada se calcule incorrectamente. La lectura subsiguiente en drwav__read_cue_to_metadata_obj() calcula el recuento real de puntos de referencia y el tamaño de asignación utilizando el campo cuePointCount de precisión completa y controlado por el atacante sin cotejarlo con la estimación de capacidad de etapa 1, y la única aplicación de límites en la región de memoria resultante (drwav__metadata_get_memory()) es un DRWAV_ASSERT, que se compila como una operación nula bajo -DNDEBUG (el valor predeterminado para las compilaciones de lanzamiento). Un archivo WAV W64 manipulado puede, por lo tanto, causar un desbordamiento de búfer de pila en cualquier aplicación de 32 bits que analice metadatos WAV no confiables.

10 Aug 2026, 12:17

Type Values Removed Values Added
Summary (en) dr_libs dr_wav.h (all versions through current master) contains an integer overflow in W64 CUE chunk metadata parsing. In drwav__metadata_process_chunk(), a stage-1 capacity estimate truncates the 64-bit W64 chunk sizeInBytes to size_t before dividing by DRWAV_CUE_POINT_BYTES; on 32-bit builds this truncation causes the pre-allocated extra metadata capacity to be computed incorrectly. The subsequent read in drwav__read_cue_to_metadata_obj() computes the actual cue point count and allocation size using the full-precision, attacker-controlled cuePointCount field without cross-checking it against the stage-1 capacity estimate, and the only bounds enforcement on the resulting memory region (drwav__metadata_get_memory()) is a DRWAV_ASSERT, which compiles to a no-op under -DNDEBUG (the default for release builds). A crafted W64 WAV file can therefore cause a heap buffer overflow in any 32-bit application parsing untrusted WAV metadata. (en) dr_libs dr_wav.h (all versions through current master) contains an integer overflow in W64 CUE chunk metadata parsing. In drwav__metadata_process_chunk, a stage-1 capacity estimate truncates the 64-bit W64 chunk sizeInBytes to size_t before dividing by DRWAV_CUE_POINT_BYTES; on 32-bit builds this truncation causes the pre-allocated extra metadata capacity to be computed incorrectly.

05 Aug 2026, 13:24

Type Values Removed Values Added
New CVE

Information

Published : 2026-08-05 13:24

Updated : 2026-10-24 15:10


NVD link : CVE-2026-71261

Mitre link : CVE-2026-71261

CVE.ORG link : CVE-2026-71261


JSON object : View

Products Affected

No product.

CWE
CWE-190

Integer Overflow or Wraparound