CVE-2023-45680
JSON

5.3medium

Null pointer dereference in vorbis_deinit in stb_vorbis

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.55% (higher than 47% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

stb_vorbis is a single file MIT licensed library for processing ogg vorbis files. A crafted file may trigger memory allocation failure in `start_decoder`. In that case the function returns early, the `f->comment_list` is set to `NULL`, but `f->comment_list_length` is not reset. Later in `vorbis_deinit` it tries to dereference the `NULL` pointer. This issue may lead to denial of service.

Affected

Product or packageVersionsReported by
nothings stb<= 1.22CVE List
nothings stb_vorbis.c1.22NVD

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Classification

CWE-476

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

stb_vorbis is a single file MIT licensed library for processing ogg vorbis files. A crafted file may trigger memory allocation failure in `start_decoder`. In that case the function returns early, the `f->comment_list` is set to `NULL`, but `f->comment_list_length` is not reset. Later in `vorbis_deinit` it tries to dereference the `NULL` pointer. This issue may lead to denial of service.

NVD (es)

stb_vorbis es una librería de archivo único con licencia MIT para procesar archivos ogg vorbis. Un archivo manipulado puede provocar una falla en la asignación de memoria en `start_decoder`. En ese caso, la función regresa antes, `f-&gt;comment_list` se establece en `NULL`, pero `f-&gt;comment_list_length` no se restablece. Más adelante en `vorbis_deinit` intenta eliminar la referencia al puntero `NULL`. Este problema puede provocar la denegación del servicio.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-45680 changed 2024-09-11CVE Terms of Use
NVDCVE-2023-45680 changed 2026-06-17Public domain