---
id: CVE-2026-111154
title: >-
  libTiMidity through 0.2.8 contains a stack out-of-bounds write vulnerability
  in the SoundFont loader that allows attackers to corrupt stack memory via
  unchecked generator operators in parse_gen
summary: >-
  libTiMidity through 0.2.8 contains a stack out-of-bounds write vulnerability
  in the SoundFont loader that allows attackers to corrupt stack memory via
  unchecked generator operators in parse_gen. Attackers can supply a crafted
  .sf2 file w…
severity: medium
cvss: 6.1
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H'
cwe:
  - CWE-787
vendor: sezero
product: libtimidity
affected:
  - libtimidity >= 0.2.8 <= 0.2.8
published: '2026-10-15'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T19:17:30.243'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-111154'
references:
  - url: 'https://github.com/sezero/libtimidity'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/sezero/libtimidity/blob/a52adf6aee2635e2a16797213a089c2180e67757/src/sndfont.c#L468-L480
    label: disclosure@vulncheck.com
  - url: >-
      https://hackmd.io/@haind-pwn/libtimidity-soundfont-generator-oper-oob-write
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/libtimidity-through-0.2.8-stack-out-of-bounds-write-via-parse-gen-in-soundfont-loader
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
ingestedAt: '2026-10-15T19:25:46.416Z'
---

## Overview

libTiMidity through 0.2.8 contains a stack out-of-bounds write vulnerability in the SoundFont loader that allows attackers to corrupt stack memory via unchecked generator operators in parse_gen. Attackers can supply a crafted .sf2 file with out-of-range pgen/igen operator values to write chosen 16-bit values near the stack Layer object, causing crashes and stack memory corruption.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
