| Título | vgmstream r2117 Buffer Overflow |
|---|
| Descrição | vgmstream contains a CWE-787 vulnerability in sbuf_silence_part() in src/base/sbuf.c. The helper performs pointer arithmetic and computes the memset() length from attacker-influenced start and count values using signed integers and without validating that the resulting range stays within the heap-backed sample buffer. Attacker-controlled TXTP play configuration can reach this path and make the renderer write beyond the destination buffer. A crafted TXTP file can therefore cause a heap buffer overflow during rendering, terminating the process and potentially enabling code execution in applications embedding vgmstream.
I re-verified this issue against the latest upstream HEAD commit 79bc65b52cddc61b859679c1c47dc57092872ae1 on 2026-08-21 and confirmed that the vulnerable logic is still present there.
Affected component / root cause: render:sbuf-silence-part-unchecked-attacker-controlled-range
CWE: CWE-787
CVSS v3.1 draft: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
|---|
| Fonte | ⚠️ https://github.com/vgmstream/vgmstream/issues/1997 |
|---|
| Utilizador | ni-liao (UID 98297) |
|---|
| Submissão | 13/09/2026 16h30 (há 22 dias) |
|---|
| Moderação | 04/10/2026 19h37 (21 days later) |
|---|
| Estado | Aceite |
|---|
| Entrada VulDB | 413455 [vgmstream até r2117 TXTP File src/meta/txtp_parser.c parse_params/txtp_parse Excesso de tampão] |
|---|
| Pontos | 20 |
|---|