Description
AdPlug through 2.4 contains a heap-based buffer overflow in CksmPlayer::update() in src/ksm.cpp that writes past the fixed databuf[2048] array without bounds checking. Attackers can supply a crafted .ksm module whose notes share one time slot to overflow the heap player object, causing memory corruption and denial of service.
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
- https://github.com/adplug/adplug/blob/e491e382479ed2246f124c96c70d94561dce59b9/src/ksm.cpp#L99-L229 technical-description
- https://github.com/adplug/adplug/issues/292 issue-tracking
- https://github.com/adplug/adplug/pull/295 issue-tracking patch
- https://github.com/adplug/adplug product
- VulnCheck Advisory: AdPlug through 2.4 Heap Buffer Overflow via CksmPlayer::update in ksm.cpp third-party-advisory