CVE-2026-75904: Out-of-bounds Read in Konstanty Bialkowski libmodplug
CVE-2026-75904 is an out-of-bounds read vulnerability in libmodplug up to version 0.8.9.1. The flaw occurs in the pat_smplooped function in src/load_pat.cpp, where an index of zero leads to reading one byte before a static array. This index is derived from a MIDI event field that can be zero before instrument assignment. A crafted 32-byte MIDI file can trigger this condition during playback, affecting note event looping behavior.
AI Analysis
Technical Summary
libmodplug versions up to 0.8.9.1 contain an out-of-bounds read in the pat_smplooped function within src/load_pat.cpp. The function checks only the upper bound of a sample index against MAXSMP but then subtracts one before indexing a 191-byte static array pat_loops. If the index is zero, the code reads pat_loops[-1], accessing memory before the array. This index comes from the smpno field of a parsed MIDI event, which is initialized to zero and only later overwritten. A specially crafted 32-byte MIDI file passed to the ModPlug_Load entry point can cause this out-of-bounds read during the processing of MIDI patterns, influencing playback state by determining whether a note event is treated as looping.
Potential Impact
The out-of-bounds read may lead to reading memory adjacent to the pat_loops array, potentially causing incorrect playback behavior by influencing note looping state. The CVSS score of 4.8 (medium severity) reflects limited impact, with no known privilege escalation or code execution. There are no known exploits in the wild. The vulnerability requires local access and user interaction (loading a crafted MIDI file).
Mitigation Recommendations
No official patch or remediation level is currently available for this vulnerability. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is released, avoid processing untrusted or crafted MIDI files with libmodplug versions up to 0.8.9.1.
CVE-2026-75904: Out-of-bounds Read in Konstanty Bialkowski libmodplug
Description
CVE-2026-75904 is an out-of-bounds read vulnerability in libmodplug up to version 0.8.9.1. The flaw occurs in the pat_smplooped function in src/load_pat.cpp, where an index of zero leads to reading one byte before a static array. This index is derived from a MIDI event field that can be zero before instrument assignment. A crafted 32-byte MIDI file can trigger this condition during playback, affecting note event looping behavior.
CVSS v4.0
Score 4.8medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
libmodplug versions up to 0.8.9.1 contain an out-of-bounds read in the pat_smplooped function within src/load_pat.cpp. The function checks only the upper bound of a sample index against MAXSMP but then subtracts one before indexing a 191-byte static array pat_loops. If the index is zero, the code reads pat_loops[-1], accessing memory before the array. This index comes from the smpno field of a parsed MIDI event, which is initialized to zero and only later overwritten. A specially crafted 32-byte MIDI file passed to the ModPlug_Load entry point can cause this out-of-bounds read during the processing of MIDI patterns, influencing playback state by determining whether a note event is treated as looping.
Potential Impact
The out-of-bounds read may lead to reading memory adjacent to the pat_loops array, potentially causing incorrect playback behavior by influencing note looping state. The CVSS score of 4.8 (medium severity) reflects limited impact, with no known privilege escalation or code execution. There are no known exploits in the wild. The vulnerability requires local access and user interaction (loading a crafted MIDI file).
Mitigation Recommendations
No official patch or remediation level is currently available for this vulnerability. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is released, avoid processing untrusted or crafted MIDI files with libmodplug versions up to 0.8.9.1.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-18T14:53:24.138Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a847b9ec6e8be03326654c7
Added to database: 08/18/2026, 15:34:54 UTC
Last enriched: 08/18/2026, 15:51:09 UTC
Last updated: 08/18/2026, 16:03:39 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.