Skip to content
Heist/ feed
Back to feed
Medium

libTiMidity through 0.2.8 Stack Out-of-Bounds Write via parse_gen in SoundFont Loader

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-111154
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 02:24 UTC · Revision 1

Source evidence

libTiMidity through 0.2.8 Stack Out-of-Bounds Write via parse_gen in SoundFont Loader

core-osv · Original source

Published 15 Oct 2026, 18:57 UTC

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.

osv:CVE-2026-111154
Complete source record
{
  "id": "f785ee8344a9dfa320b69c66fac50c31376a04c5eb3d8cfcf69cd642ccc2ead0",
  "url": "https://osv.dev/vulnerability/CVE-2026-111154",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "libTiMidity through 0.2.8 Stack Out-of-Bounds Write via parse_gen in SoundFont Loader",
    "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 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.",
    "evidence": "osv:CVE-2026-111154",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-111154",
      "aliases": [
        "CVE-2026-111154"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/sezero/libtimidity",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a52adf6aee2635e2a16797213a089c2180e67757"
                },
                {
                  "last_affected": "a52adf6aee2635e2a16797213a089c2180e67757"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0.2.8"
                      },
                      {
                        "last_affected": "0.2.8"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0.2.8"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.2.8",
            "libtimidity-0.2.8"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-111154.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:32.372696700Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/111xxx/CVE-2026-111154.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-111154",
        "https://www.vulncheck.com/advisories/libtimidity-through-0.2.8-stack-out-of-bounds-write-via-parse-gen-in-soundfont-loader",
        "https://github.com/sezero/libtimidity",
        "https://github.com/sezero/libtimidity/blob/a52adf6aee2635e2a16797213a089c2180e67757/src/sndfont.c#L468-L480",
        "https://hackmd.io/@haind-pwn/libtimidity-soundfont-generator-oper-oob-write"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-787"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/111xxx/CVE-2026-111154.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-111154",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 499635,
  "published_at": "2026-10-15T18:57:42.295+00:00"
}