Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-111161 Overview
CVE-2026-111161 is an off-by-one stack out-of-bounds write vulnerability in libADLMIDI versions 1.6.2 through 1.6.2.1. The flaw resides in the BW_MidiSequencer component, specifically in the noteStates array handling logic. Attackers craft a malicious MIDI file containing a note-on event with status byte 0x9F and note value 0x7F to corrupt stack memory. Loading the file through adl_openFile() or adl_openData() triggers the out-of-bounds write, crashing the hosting media player or game engine. The vulnerability maps to [CWE-787: Out-of-bounds Write].
Critical Impact
Crafted MIDI files cause memory corruption and process termination in any application linking vulnerable libADLMIDI builds, affecting media players and game engines.
Affected Products
- libADLMIDI 1.6.2
- libADLMIDI 1.6.2.1
- Applications and game engines embedding vulnerable libADLMIDI builds
Discovery Timeline
- 2026-10-15 - CVE-2026-111161 published to the National Vulnerability Database
- 2026-10-16 - Record last modified in NVD
Technical Details for CVE-2026-111161
Vulnerability Analysis
The vulnerability exists in the MIDI sequencer logic of libADLMIDI, a software synthesizer library emulating OPL3 FM chips for MIDI playback. The BW_MidiSequencer component tracks active notes through a fixed-size noteStates array indexed by MIDI channel and note number. The index computation does not fully validate incoming note values against the array boundary, allowing a single-byte write past the end of a stack-allocated buffer. The corrupted stack frame interferes with saved registers or return addresses, leading to a process crash. Because the parsing occurs when loading a file through adl_openFile() or adl_openData(), no playback interaction is required beyond opening the malicious file.
Root Cause
The root cause is an off-by-one boundary check in the noteStates indexing path within miditrack_impl.hpp and read_smf_impl.hpp. The code accepts a note value of 0x7F combined with a channel derived from status byte 0x9F and writes one byte beyond the allocated stack buffer. See the HackMD technical analysis for the annotated indexing walkthrough.
Attack Vector
Exploitation requires an attacker to deliver a crafted MIDI file to a user and have the user open it in an application that loads it through libADLMIDI's public API. The attack vector is local and depends on user interaction, consistent with the CVSS 4.0 vector indicating local attack vector and passive user interaction. Observed impact is limited to availability loss through process crash; integrity impact is low and confidentiality is unaffected. The vulnerable code paths are documented in the miditrack_impl.hpp reference and read_smf_impl.hpp reference.
No verified public exploit code is available. The VulnCheck advisory describes the triggering byte sequence without releasing a weaponized sample.
Detection Methods for CVE-2026-111161
Indicators of Compromise
- MIDI files containing note-on events with status byte 0x9F combined with note value 0x7F, which trigger the out-of-bounds write path.
- Unexpected crashes of media players, emulators, or game engines immediately after opening a .mid, .midi, .rmi, or .xmi file.
- Crash dumps showing stack corruption inside BW_MidiSequencer frames or adl_openFile/adl_openData call stacks.
Detection Strategies
- Inventory applications and game engines that link against libADLMIDI and verify the embedded library version against the vulnerable range 1.6.2 through 1.6.2.1.
- Scan file-ingestion pipelines and content stores for MIDI files that contain the specific status/note byte pattern associated with the trigger.
- Monitor endpoint telemetry for process termination events tied to MIDI file handlers and correlate with recently opened file paths.
Monitoring Recommendations
- Collect application crash telemetry from workstations where users open untrusted multimedia content.
- Alert on repeated faults in processes known to embed libADLMIDI, which may indicate attempted exploitation or fuzzing.
- Log file downloads of MIDI content from untrusted sources and route them for inspection before user access.
How to Mitigate CVE-2026-111161
Immediate Actions Required
- Identify all internal applications, redistributables, and game engines that bundle libADLMIDI 1.6.2 or 1.6.2.1 and prioritize them for update.
- Block or quarantine MIDI files received from untrusted email, chat, or web sources until the library is upgraded.
- Advise users not to open MIDI attachments or downloaded .mid/.midi files in vulnerable players.
Patch Information
Monitor the libADLMIDI GitHub repository for a fixed release beyond 1.6.2.1. Downstream vendors shipping the library in media players or games should rebuild against the patched source and distribute updated binaries. Review the VulnCheck advisory for the latest fix status.
Workarounds
- Disable or remove MIDI playback support in applications that embed libADLMIDI when a patched build is not yet available.
- Replace the bundled libADLMIDI with a vendor-maintained fork that contains an updated bounds check on the noteStates index.
- Restrict the opening of MIDI files to a sandboxed process or container to contain crashes and limit the blast radius of future memory-safety issues in the parser.
# Example: locate binaries linking vulnerable libADLMIDI on Linux hosts
find / -type f \( -name 'libADLMIDI*.so*' -o -name '*.so*' \) 2>/dev/null \
| xargs -I{} sh -c 'strings "{}" 2>/dev/null | grep -l "libADLMIDI 1.6.2" && echo FOUND: {}'
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

