---
id: CVE-2026-111161
title: >-
  libADLMIDI 1.6.2 through 1.6.2.1 contains an off-by-one stack out-of-bounds
  write vulnerability in BW_MidiSequencer that allows attackers to corrupt stack
  memory via crafted MIDI files
summary: >-
  libADLMIDI 1.6.2 through 1.6.2.1 contains an off-by-one stack out-of-bounds
  write vulnerability in BW_MidiSequencer that allows attackers to corrupt stack
  memory via crafted MIDI files. Attackers can supply a MIDI file with a note-on
  usi…
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: Wohlstand
product: libADLMIDI
affected:
  - libADLMIDI >= 1.6.2 <= 1.6.2.1
published: '2026-10-15'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T19:17:31.260'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-111161'
references:
  - url: 'https://github.com/Wohlstand/libADLMIDI'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/Wohlstand/libADLMIDI/blob/99c5e03a5cf9b4fdf35b53efddb853c96320d50f/src/midiseq/impl/miditrack_impl.hpp#L350-L357
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/Wohlstand/libADLMIDI/blob/99c5e03a5cf9b4fdf35b53efddb853c96320d50f/src/midiseq/impl/read_smf_impl.hpp#L113
    label: disclosure@vulncheck.com
  - url: 'https://hackmd.io/@haind-pwn/libadlmidi-notestates-note-index-stack-oob'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/libadlmidi-1.6.2-through-1.6.2.1-stack-out-of-bounds-write-via-bw-midisequencer-notestates
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
  - exploit-available
ingestedAt: '2026-10-15T19:25:46.418Z'
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-15T19:32:53.654457Z'
---

## Overview

libADLMIDI 1.6.2 through 1.6.2.1 contains an off-by-one stack out-of-bounds write vulnerability in BW_MidiSequencer that allows attackers to corrupt stack memory via crafted MIDI files. Attackers can supply a MIDI file with a note-on using status 0x9F and note 0x7F through adl_openFile() or adl_openData() to crash the hosting media player or game engine.

## Remediation

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