| Title | vgmstream r2117 Divide by Zero |
|---|
| Description | 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 |
|---|
| Source | ⚠️ https://github.com/vgmstream/vgmstream/issues/1996 |
|---|
| User | ni-liao (UID 98297) |
|---|
| Submission | 08/21/2026 09:28 (27 days ago) |
|---|
| Moderation | 09/17/2026 10:18 (27 days later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 406347 [vgmstream AWB parser src/meta/awb.c init_vgmstream_awb_memory divide by zero] |
|---|
| Points | 20 |
|---|