Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-110875 Overview
CVE-2026-110875 is a heap-based buffer overflow [CWE-787] in AdPlug through version 2.4. The flaw resides in CksmPlayer::update() within src/ksm.cpp. The function writes past the fixed databuf[2048] array without performing bounds checks. Attackers craft a malicious .ksm module containing notes that share a single time slot, overflowing the heap-allocated player object. Successful exploitation causes memory corruption and denial of service in applications linking AdPlug.
Critical Impact
A crafted .ksm file triggers an out-of-bounds heap write in the KSM player, corrupting adjacent heap memory and crashing the host application.
Affected Products
- AdPlug library versions through 2.4
- Applications and media players that embed AdPlug for .ksm module playback
- Downstream distributions packaging vulnerable AdPlug releases
Discovery Timeline
- 2026-10-15 - CVE-2026-110875 published to NVD
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-110875
Vulnerability Analysis
AdPlug is an AdLib sound library used to play legacy tracker and module formats, including Ken's Sound Modules (.ksm). The CksmPlayer::update() routine in src/ksm.cpp iterates over notes scheduled for the current time slot and appends event data into a fixed-size buffer named databuf sized at 2048 entries. The player increments the write index inside the loop without validating it against the buffer boundary. A .ksm file containing many notes assigned to the same time slot drives the index past the array end, producing an out-of-bounds write on the heap. The corrupted memory sits inside the heap-allocated CksmPlayer instance and clobbers adjacent allocator metadata or object fields. The outcome is immediate memory corruption and process termination, with potential for further exploitation depending on heap layout.
Root Cause
The root cause is missing bounds enforcement on databuf[2048] during note iteration in CksmPlayer::update(). The implementation trusts the attacker-controlled note density in the input file rather than clamping writes to the buffer size.
Attack Vector
Exploitation requires a user to open or play a crafted .ksm file in an application using AdPlug. Delivery vectors include email attachments, file shares, music collections, and web downloads targeting users of legacy module players. No network interaction or elevated privileges are required on the victim host.
For a detailed walkthrough of the overflow mechanics, see the HackMD AdPlug KSM Exploit Analysis and the VulnCheck AdPlug Heap Overflow Advisory.
Detection Methods for CVE-2026-110875
Indicators of Compromise
- Unexpected crashes in processes that load libadplug while handling .ksm files
- Heap corruption signatures or SIGSEGV faults inside CksmPlayer::update on the call stack
- Presence of unusually large or malformed .ksm modules sourced from untrusted locations
Detection Strategies
- Hunt for process crash telemetry referencing AdPlug symbols or the ksm.cpp translation unit
- Scan file repositories and user downloads for .ksm files and triage any received from external sources
- Run suspect .ksm files through AddressSanitizer-instrumented AdPlug builds in a sandbox to confirm the heap overflow
Monitoring Recommendations
- Enable application crash reporting on endpoints running legacy audio players linked against AdPlug
- Alert on repeated media player terminations tied to module file playback
- Track package inventory for AdPlug <= 2.4 across Linux distributions and third-party software
How to Mitigate CVE-2026-110875
Immediate Actions Required
- Inventory all systems and applications that bundle AdPlug and identify versions through 2.4
- Restrict opening of untrusted .ksm files until patched builds are deployed
- Monitor the AdPlug repository for a tagged release incorporating the fix
Patch Information
A fix is proposed in AdPlug Pull Request #295, tracked under AdPlug Issue #292. Rebuild AdPlug from the patched source once merged, and update downstream applications and distribution packages to the fixed release. Vulnerable code is visible in the upstream KSM source.
Workarounds
- Disable the KSM loader in applications where AdPlug exposes a format allowlist
- Block or quarantine .ksm files at email and web gateways for user populations that do not require them
- Run media players handling untrusted modules inside sandboxes or containers with restricted filesystem access
# Verify installed AdPlug version on Linux
dpkg -s libadplug-2.2.1-0v5 2>/dev/null | grep -E '^(Package|Version):'
rpm -q adplug 2>/dev/null
# Quarantine untrusted .ksm files pending patch deployment
find /home -type f -iname '*.ksm' -exec mv {} /var/quarantine/ \;
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

