{"id":"UBUNTU-CVE-2026-75904","details":"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.","modified":"2026-09-02T19:36:33.932602827Z","published":"2026-08-18T16:18:00Z","upstream":["CVE-2026-75904"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-75904"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-75904"},{"type":"REPORT","url":"https://github.com/Konstanty/libmodplug/issues/103"}],"affected":[{"package":{"name":"gst-plugins-bad0.10","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/gst-plugins-bad0.10?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.23-7ubuntu2","0.10.23-7.2ubuntu1","0.10.23-7.2ubuntu1.1","0.10.23-7.2ubuntu1.2","0.10.23-7.2ubuntu1.3","0.10.23-7.2ubuntu1.3+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"gstreamer0.10-plugins-bad","binary_version":"0.10.23-7.2ubuntu1.3+esm1"},{"binary_name":"libgstreamer-plugins-bad0.10-0","binary_version":"0.10.23-7.2ubuntu1.3+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-75904.json"}},{"package":{"name":"libmodplug","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/libmodplug?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:0.8.8.4-4","1:0.8.8.4-4.1"],"ecosystem_specific":{"binaries":[{"binary_name":"libmodplug1","binary_version":"1:0.8.8.4-4.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-75904.json"}},{"package":{"name":"libmodplug","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libmodplug?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:0.8.8.5-2"],"ecosystem_specific":{"binaries":[{"binary_version":"1:0.8.8.5-2","binary_name":"libmodplug1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-75904.json"}},{"package":{"name":"libmodplug","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libmodplug?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:0.8.9.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1:0.8.9.0-1","binary_name":"libmodplug1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-75904.json"}},{"package":{"name":"libmodplug","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libmodplug?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:0.8.9.0-2","1:0.8.9.0-2build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libmodplug1","binary_version":"1:0.8.9.0-2build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-75904.json"}},{"package":{"name":"libmodplug","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libmodplug?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:0.8.9.0-3"],"ecosystem_specific":{"binaries":[{"binary_name":"libmodplug1","binary_version":"1:0.8.9.0-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-75904.json"}},{"package":{"name":"libmodplug","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/libmodplug?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:0.8.9.0-3","1:0.8.9.0-3build1"],"ecosystem_specific":{"binaries":[{"binary_version":"1:0.8.9.0-3build1","binary_name":"libmodplug1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-75904.json"}},{"package":{"name":"libmodplug","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/libmodplug?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:0.8.9.0-3build1","1:0.8.9.0-3build2"],"ecosystem_specific":{"binaries":[{"binary_version":"1:0.8.9.0-3build2","binary_name":"libmodplug1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-75904.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}