Description
AdPlug through 2.4 contains an out-of-bounds read vulnerability in src/xsm.cpp that allows attackers to read before note_table by supplying a negative note index. Attackers can craft an XSM file with the ofTAZ! signature and a song byte of 0x80 or higher, causing a global-buffer-overflow read during playback that may crash affected applications.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| adplug | adplug | ≤ 2.4 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | adplug | No fix yet | — |
| Debian 13 | adplug | No fix yet | — |
| Debian 12 | adplug | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | adplug | No fix yet | — |
| Ubuntu 26.04 LTS | adplug | No fix yet | — |
| Ubuntu 24.04 LTS | adplug | No fix yet | — |
| Ubuntu 22.04 LTS | adplug | No fix yet | — |
| Ubuntu 20.04 LTS | adplug | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | adplug | No fix yet | — |
| Ubuntu 16.04 LTS | adplug | No fix yet | — |
References
- https://hackmd.io/@haind-pwn/adplug-ksm-note-loop-databuf-oob-write technical-description exploit
- https://github.com/adplug/adplug/blob/e491e382479ed2246f124c96c70d94561dce59b9/src/xsm.cpp#L86-L134 technical-description
- https://github.com/adplug/adplug product
- VulnCheck Advisory: AdPlug through 2.4 Out-of-Bounds Read via CxsmPlayer::play_note in XSM Files third-party-advisory