
CVE catalog
CVE-2026-75904
libmodplug through 0.8.9.1 contains an out-of-bounds read in pat_smplooped in src/load_pat.cpp. The function validates only the upper bound of its sample index against MAXSMP and then subtracts one be
- Severity
- Medium · CVSS 5.3
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.19% · Oct 25, 2026
libmodplug through 0.8.9.1 contains an out-of-bounds read in pat_smplooped in src/load_pat.cpp. The function validates only the upper bound of its sample index against MAXSMP and then subtracts one before indexing the 191-byte static array pat_loops, so an index of zero reads pat_loops[-1], one byte before the array. The index is the smpno field of a parsed MIDI event, which is initialised to zero and only later overwritten from a program-change parameter, so an event reaching the note test before an instrument is assigned carries zero. A 32-byte MIDI file supplied to the library's public ModPlug_Load entry point drives the path through CSoundFile::Create, CSoundFile::ReadMID, and MID_ReadPatterns to the read. The byte read out of bounds determines whether a note event is treated as looping, so adjacent static storage influences playback state.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libmodplug | sid | 1:0.8.9.0-4 | fixed |
| Debian | libmodplug | forky | 1:0.8.9.0-4 | fixed |
| Debian | libmodplug | trixie | 1:0.8.9.0-3 | vulnerable |
| Debian | libmodplug | bookworm | 1:0.8.9.0-3 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libmodplug | source | sid | 1:0.8.9.0-4 | not yet assigned | Not reported | [1144933] |
| Debian | libmodplug | source | forky | 1:0.8.9.0-4 | not yet assigned | Not reported | [1144933] |
| Debian | libmodplug | source | trixie | (unfixed) | not yet assigned | Not reported | [1144933] |
| Debian | libmodplug | source | bookworm | (unfixed) | not yet assigned | Not reported | [1144933] |
Notes
[trixie] libmodplug: Minor issue [bookworm] libmodplug: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libmodplug1]Affected
Source package: [libmodplug]
Details (2)
1:0.8.9.0-3· amd64 · bookwormAffected
nvd · libmodplug · debian · bookworm; nvd · libmodplug · debian · 12
1:0.8.9.0-3· arm64 · bookwormAffected
nvd · libmodplug · debian · bookworm; nvd · libmodplug · debian · 12
- [libmodplug-dev]Affected
Source package: [libmodplug]
Details (2)
1:0.8.9.0-3· amd64 · bookwormAffected
nvd · libmodplug · debian · bookworm; nvd · libmodplug · debian · 12
1:0.8.9.0-3· arm64 · bookwormAffected
nvd · libmodplug · debian · bookworm; nvd · libmodplug · debian · 12
[Debian 13 (Trixie)]
- [libmodplug1]Affected
Source package: [libmodplug]
Details (2)
1:0.8.9.0-3+b2· amd64 · trixieAffected
nvd · libmodplug · debian · 13
1:0.8.9.0-3+b2· arm64 · trixieAffected
nvd · libmodplug · debian · 13
- [libmodplug-dev]Affected
Source package: [libmodplug]
Details (2)
1:0.8.9.0-3+b2· amd64 · trixieAffected
nvd · libmodplug · debian · 13
1:0.8.9.0-3+b2· arm64 · trixieAffected
nvd · libmodplug · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_12215-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-75904]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-75904]
- [https://security-tracker.debian.org/tracker/CVE-2026-75904]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-75904.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]