| 제목 | vgmstream r2117 Stack-based Buffer Overflow |
|---|
| 설명 | vgmstream r2117 contains a CWE-121 vulnerability in get_falcom_looping() in
src/meta/dec.c. In the Dinosaur Resurrection loop-metadata path, the function
parses an attacker-controlled line with the unbounded sscanf() scanset
"%[^ ]" and writes the resulting token at name + 6 inside a fixed stack
buffer. Because no field width limits the conversion to the remaining capacity
of name, a long first token in a crafted loop.txt file can overwrite adjacent
stack memory while vgmstream initializes the accompanying audio stream. This
can terminate the host process and may permit further memory corruption. Code
execution has not been demonstrated.
Affected component / root cause:
dec:get-falcom-looping-unbounded-scanset-to-fixed-stack-buffer
The issue was corrected after r2117 by upstream commit
e8fc8ce7b28803961908696613c869bd853d7684 (2026-08-14), which replaces the
unsafe text parsing with bounded handling:
https://github.com/vgmstream/vgmstream/commit/e8fc8ce7b28803961908696613c869bd853d7684
CWE: CWE-121
CVSS v3.1 draft: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
|---|
| 원천 | ⚠️ https://github.com/vgmstream/vgmstream/issues/1988 |
|---|
| 사용자 | ni-liao (UID 98297) |
|---|
| 제출 | 2026. 11. 12. AM 11:07 (22 날 ago) |
|---|
| 모더레이션 | 2026. 12. 04. PM 12:29 (22 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 449696 [vgmstream 까지 r2117 Falcom Loop Parser src/meta/dec.c get_falcom_looping 메모리 손상] |
|---|
| 포인트들 | 20 |
|---|