| 标题 | vgmstream r2117 Divide by Zero |
|---|
| 描述 | vgmstream contains a CWE-369 vulnerability in init_vgmstream_awb_memory() in src/meta/awb.c. The AWB parser reads the attacker-controlled 16-bit offset_alignment field and uses it directly as the divisor of modulo expressions when normalizing subfile offsets, without rejecting a zero value first. A crafted AWB file can therefore trigger a deterministic divide-by-zero exception during offset-table parsing, terminating the host process before audio decoding begins.
I re-verified this issue against the latest upstream HEAD commit 79bc65b52cddc61b859679c1c47dc57092872ae1 on 2026-08-21 and confirmed that the vulnerable logic is still present there.
Affected component / root cause: awb:zero-offset-alignment-used-as-modulo-divisor
CWE: CWE-369
CVSS v3.1 draft: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
|---|
| 来源 | ⚠️ https://github.com/vgmstream/vgmstream/issues/1996 |
|---|
| 用户 | ni-liao (UID 98297) |
|---|
| 提交 | 2026-08-21 09時28分 (28 日前) |
|---|
| 管理 | 2026-09-17 10時18分 (27 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 406347 [vgmstream AWB parser src/meta/awb.c init_vgmstream_awb_memory 拒绝服务] |
|---|
| 积分 | 20 |
|---|