Description
libmodplug through 0.8.9.1 contains a heap-based out-of-bounds read vulnerability in CSoundFile::ReadAMS2() in src/load_ams.cpp that allows attackers to read adjacent heap memory via crafted AMS files. Attackers can supply an AMS module whose pattern effect bytes keep bit 7 set, driving the decoder past the input buffer and crashing any libmodplug consumer.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Konstanty Bialkowski libmodplug
Default version status: unaffected
0 to ≤ 0.8.9.1affected
pkg:github/Konstanty/libmodplugReferences
- https://hackmd.io/@haind-pwn/libmodplug-dsm-pattern-oob-write ↗
- https://github.com/Konstanty/libmodplug/blob/d1b97ed0020bc620a059d3675d1854b40bd2608d/src/load_ams.cpp#L509-L537 ↗
- https://github.com/Konstanty/libmodplug ↗
- https://www.vulncheck.com/advisories/libmodplug-through-0.8.9.1-heap-out-of-bounds-read-via-csoundfile-readams2 ↗