Submeter #1092112: vgmstream r2117 Out-of-bounds Writeinformação

Títulovgmstream r2117 Out-of-bounds Write
Descriçãovgmstream 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
Fonte⚠️ https://github.com/vgmstream/vgmstream/issues/1992
Utilizador
 ni-liao (UID 98297)
Submissão12/11/2026 11h09 (há 22 dias)
Moderação04/12/2026 12h29 (22 days later)
EstadoAceite
Entrada VulDB449698 [vgmstream até r2117 PSB File src/util/m2_psb.c decode_key Excesso de tampão]
Pontos20