| Titel | vgmstream r2117 Out-of-bounds Write |
|---|
| Beschreibung | vgmstream r2117 contains a CWE-787 vulnerability in decode_key() in
src/util/m2_psb.c. The function decodes an attacker-controlled PSB key chain
into a caller-provided buffer. If the chain does not terminate within str_len
iterations, the loop exits with i equal to str_len, but the function then
writes a NUL byte to str[i]. The current caller supplies char key[256] and
passes sizeof(key), so a non-terminating chain can cause a one-byte write
immediately past the end of the stack buffer. A crafted PSB file can therefore
corrupt adjacent stack data and terminate the host process. More extensive
exploitation has not been demonstrated.
Affected component / root cause:
psb:decode-key-terminator-written-at-one-past-buffer-end
The issue was corrected after r2117 by upstream commit
7eb768e134d23d74e65e69b07103da2ce5f62d99 (2026-07-26), which changes the
key-decoding bounds and termination handling:
https://github.com/vgmstream/vgmstream/commit/7eb768e134d23d74e65e69b07103da2ce5f62d99
CWE: CWE-787
CVSS v3.1 draft: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H |
|---|
| Quelle | ⚠️ https://github.com/vgmstream/vgmstream/issues/1992 |
|---|
| Benutzer | ni-liao (UID 98297) |
|---|
| Einreichung | 12.11.2026 11:09 (vor 22 Tagen) |
|---|
| Moderieren | 04.12.2026 12:29 (22 days later) |
|---|
| Status | Akzeptiert |
|---|
| VulDB Eintrag | 449698 [vgmstream bis r2117 PSB File src/util/m2_psb.c decode_key Pufferüberlauf] |
|---|
| Punkte | 20 |
|---|