| शीर्षक | vgmstream r2117 Out-of-bounds Write |
|---|
| विवरण | 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 |
|---|
| स्रोत | ⚠️ https://github.com/vgmstream/vgmstream/issues/1992 |
|---|
| उपयोगकर्ता | ni-liao (UID 98297) |
|---|
| सबमिशन | 12/11/2026 11:09 AM (22 दिन पहले) |
|---|
| संयम | 04/12/2026 12:29 PM (22 days later) |
|---|
| स्थिति | स्वीकृत |
|---|
| VulDB प्रविष्टि | 449698 [vgmstream तक r2117 PSB File src/util/m2_psb.c decode_key बफ़र ओवरफ़्लो] |
|---|
| अंक | 20 |
|---|