Vulnerability · Published Oct 15, 2026 · Assigned by VulnCheck
CVE-2026-111136libInstPatch through 1.1.7 Heap Out-of-Bounds Write via ipatch_sf2_gen_is_valid
Medium 6.1
In plain English
A medium-severity out-of-bounds write in libinstpatch from swami. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 9% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libinstpatch | no fix listed | DEBIAN-CVE-2026-111136 |
| Debian:13 | libinstpatch | no fix listed | DEBIAN-CVE-2026-111136 |
| Debian:14 | libinstpatch | 1.1.8-1 | DEBIAN-CVE-2026-111136 |
| Ubuntu:22.04:LTS | libinstpatch | no fix listed | UBUNTU-CVE-2026-111136 |
| Ubuntu:24.04:LTS | libinstpatch | no fix listed | UBUNTU-CVE-2026-111136 |
| Ubuntu:26.04:LTS | libinstpatch | no fix listed | UBUNTU-CVE-2026-111136 |
| Ubuntu:26.10 | libinstpatch | no fix listed | UBUNTU-CVE-2026-111136 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| swami | libinstpatch | 0 – through 1.1.7 |
Weakness: CWE-787 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
References
- https://hackmd.io/@haind-pwn/libinstpatch-sf2-generator-id-oob-write technical-description
- https://github.com/swami/libinstpatch/blob/4ff1939ccc24de204d41b3ab734fc1aece919184/libinstpatch/IpatchSF2Gen.c#L189-L205 technical-description
- https://github.com/swami/libinstpatch/blob/4ff1939ccc24de204d41b3ab734fc1aece919184/libinstpatch/IpatchSF2Reader.c#L1355-L1370 technical-description
- https://github.com/swami/libinstpatch/blob/4ff1939ccc24de204d41b3ab734fc1aece919184/libinstpatch/IpatchSF2Reader.c#L954-L969 technical-description
- https://github.com/swami/libinstpatch product
- VulnCheck Advisory: libInstPatch through 1.1.7 Heap Out-of-Bounds Write via ipatch_sf2_gen_is_valid third-party-advisory