| Titolo | vgmstream r2117 Buffer Overflow |
|---|
| Descrizione | 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 |
|---|
| Utente | ni-liao (UID 98297) |
|---|
| Sottomissione | 13/09/2026 16:30 (22 giorni fa) |
|---|
| Moderazione | 04/10/2026 19:37 (21 days later) |
|---|
| Stato | Accettato |
|---|
| Voce VulDB | 413455 [vgmstream fino a r2117 TXTP File src/meta/txtp_parser.c parse_params/txtp_parse buffer overflow] |
|---|
| Punti | 20 |
|---|