Description
libInstPatch through 1.1.7 contains a heap out-of-bounds write vulnerability in the SoundFont 2 loader because ipatch_sf2_gen_is_valid() does not range-check generator IDs before the validity mask test. Attackers can supply crafted SF2 files with out-of-range pgen or igen generator IDs to write attacker-chosen values past the zone genarray, corrupting heap memory and crashing Swami or other consumers.
References7
- github.com/swami/libinstpatch
- github.com/swami/libinstpatch/blob/4ff1939ccc24de204d41b3ab734f…
- github.com/swami/libinstpatch/blob/4ff1939ccc24de204d41b3ab734f…
- github.com/swami/libinstpatch/blob/4ff1939ccc24de204d41b3ab734f…
- hackmd.io/@haind-pwn/libinstpatch-sf2-generator-id-oob-write
- www.vulncheck.com/advisories/libinstpatch-through-1.1.7-heap-ou…
- hackmd.io/@haind-pwn/libinstpatch-sf2-generator-id-oob-write
Metrics
- CVSS 3.1
-
6.1
MEDIUM
Score source: CNA
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H - CVSS 4.0
-
6.9
MEDIUM
Score source: CNA
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 0% percentile: 9 · as of 10 November 2026
- CWE
- CWE-787
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.