Description
libTiMidity through 0.2.8 contains an out-of-bounds access vulnerability in init_soundfont() in src/sndfont.c that allows attackers to corrupt memory by supplying unvalidated SF2 preset header bank and preset values. Attackers can craft a .sf2 file whose bank or preset indexes past the 128-entry tonebank or drumset arrays, causing heap memory reads, writes, and application crashes.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| sezero | libtimidity | 0.2.8 – ≤ 0.2.8 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | timidity | No fix yet | — |
| Debian 13 | timidity | No fix yet | — |
| Debian 12 | timidity | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | timidity | No fix yet | — |
| Ubuntu 26.04 LTS | timidity | No fix yet | — |
| Ubuntu 24.04 LTS | timidity | No fix yet | — |
| Ubuntu 22.04 LTS | timidity | No fix yet | — |
| Ubuntu 20.04 LTS | timidity | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | timidity | No fix yet | — |
| Ubuntu 16.04 LTS | timidity | No fix yet | — |
References
- https://hackmd.io/@haind-pwn/libtimidity-soundfont-generator-oper-oob-write technical-description exploit
- https://github.com/sezero/libtimidity/blob/a52adf6aee2635e2a16797213a089c2180e67757/src/sndfont.c#L199-L224 technical-description
- https://github.com/sezero/libtimidity product
- VulnCheck Advisory: libTiMidity through 0.2.8 Out-of-Bounds Access via SoundFont Preset Header third-party-advisory