提交 #1092112: vgmstream r2117 Out-of-bounds Write信息

标题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)
提交2026-11-12 11時09分 (22 日前)
管理2026-12-04 12時29分 (22 days later)
状态已接受
VulDB条目449698 [vgmstream 直到 r2117 PSB File src/util/m2_psb.c decode_key 内存损坏]
积分20

Do you want to use VulDB in your project?

Use the official API to access entries easily!