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

[CVE catalog]

Severity
Medium · CVSS 5.3CVSS: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.

DistributionPackageReleaseVersionStatus
Debianlibmodplugsid1:0.8.9.0-4fixed
Debianlibmodplugforky1:0.8.9.0-4fixed
Debianlibmodplugtrixie1:0.8.9.0-3vulnerable
Debianlibmodplugbookworm1:0.8.9.0-3vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibmodplugsourcesid1:0.8.9.0-4not yet assignedNot reported[1144933]
Debianlibmodplugsourceforky1:0.8.9.0-4not yet assignedNot reported[1144933]
Debianlibmodplugsourcetrixie(unfixed)not yet assignedNot reported[1144933]
Debianlibmodplugsourcebookworm(unfixed)not yet assignedNot reported[1144933]

[Debian bug #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 · bookworm

      Affected

      nvd · libmodplug · debian · bookworm; nvd · libmodplug · debian · 12

    • 1:0.8.9.0-3 · arm64 · bookworm

      Affected

      nvd · libmodplug · debian · bookworm; nvd · libmodplug · debian · 12

  • [libmodplug-dev]Affected

    Source package: [libmodplug]

    Details (2)
    • 1:0.8.9.0-3 · amd64 · bookworm

      Affected

      nvd · libmodplug · debian · bookworm; nvd · libmodplug · debian · 12

    • 1:0.8.9.0-3 · arm64 · bookworm

      Affected

      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 · trixie

      Affected

      nvd · libmodplug · debian · 13

    • 1:0.8.9.0-3+b2 · arm64 · trixie

      Affected

      nvd · libmodplug · debian · 13

  • [libmodplug-dev]Affected

    Source package: [libmodplug]

    Details (2)
    • 1:0.8.9.0-3+b2 · amd64 · trixie

      Affected

      nvd · libmodplug · debian · 13

    • 1:0.8.9.0-3+b2 · arm64 · trixie

      Affected

      nvd · libmodplug · debian · 13

Observed:

References