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-111148 Overview
CVE-2026-111148 is a heap out-of-bounds read vulnerability in libsidplayfp through version 3.1.1, a library used to emulate Commodore 64 SID music files. The flaw resides in SidTuneBase::acceptSidTune() and is triggered when parsing a malformed PSID or RSID file. An attacker who supplies a tune file with a crafted header dataOffset value beyond the file size causes an integer wrap in the length calculation. The subsequent call to resolveAddrs() reads up to 64 KiB past the heap buffer, crashing applications that embed the library.
Critical Impact
Processing an untrusted PSID or RSID file in any application linked against libsidplayfp can crash the process through an out-of-bounds read of up to 64 KiB [CWE-125].
Affected Products
- libsidplayfp versions through 3.1.1
- Media players and emulators that embed libsidplayfp for SID tune playback
- Linux distributions packaging vulnerable libsidplayfp builds
Discovery Timeline
- 2026-10-15 - CVE-2026-111148 published to the National Vulnerability Database
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-111148
Vulnerability Analysis
The vulnerability affects PSID and RSID tune parsing in libsidplayfp. The library reads a 16-bit dataOffset field from the tune header and uses it to compute the size of the C64 program payload. When the attacker sets dataOffset to a value larger than the overall file size, the subtraction used to derive the payload length underflows. The resulting length is interpreted as a large positive integer, and resolveAddrs() subsequently reads memory far beyond the end of the heap buffer that holds the tune data. The read can span up to 64 KiB past the allocation, corrupting process state or triggering a segmentation fault.
Root Cause
The root cause is missing bounds validation on the dataOffset field before it participates in arithmetic that produces a buffer length. The relevant source lines are visible in src/sidtune/SidTuneBase.cpp around lines 295–300 and 488–500. Because the length is not sanitized, the computation wraps and bypasses the length check that would otherwise reject the file. See the HackMD Security Analysis and the VulnCheck Advisory on libsidplayfp for a detailed walkthrough.
Attack Vector
Exploitation requires local delivery of a malicious PSID or RSID file to a user who opens it in an application that uses libsidplayfp. User interaction is required, and the primary impact is denial of service through process crash. The vulnerability does not grant code execution or data disclosure based on the published analysis. Refer to the vulnerable code at SidTuneBase.cpp lines 488–500 for context.
Detection Methods for CVE-2026-111148
Indicators of Compromise
- PSID or RSID files whose header dataOffset field exceeds the actual file size on disk.
- Unexpected crashes of SID player processes shortly after opening tune files from untrusted sources.
- AddressSanitizer reports indicating a heap-buffer-overflow read inside SidTuneBase::acceptSidTune or resolveAddrs.
Detection Strategies
- Scan file repositories and download directories for .sid, .psid, and .rsid files and validate header fields against file length before distribution.
- Run libsidplayfp builds under AddressSanitizer during QA to surface the out-of-bounds read on malformed corpora.
- Monitor endpoints for repeated crashes of applications that load SID tune files, which may indicate attempts to trigger the condition.
Monitoring Recommendations
- Collect application crash telemetry (core dumps, Windows Error Reporting, systemd-coredump) for processes linked against libsidplayfp.
- Alert on execution of SID player binaries that terminate abnormally within seconds of opening a file.
- Track the installed version of libsidplayfp across managed hosts and flag any build at or below 3.1.1.
How to Mitigate CVE-2026-111148
Immediate Actions Required
- Upgrade libsidplayfp to a release later than 3.1.1 once the maintainers publish a fixed version.
- Avoid opening PSID or RSID files from untrusted or unverified sources until the patch is deployed.
- Inventory applications and distribution packages that bundle libsidplayfp and schedule them for update.
Patch Information
Monitor the upstream GitHub Repository for libsidplayfp for a release addressing the dataOffset validation in SidTuneBase::acceptSidTune(). Downstream Linux distributions will publish rebuilt packages once an upstream fix lands. Consult the VulnCheck Advisory on libsidplayfp for ongoing status.
Workarounds
- Pre-validate tune files by rejecting any PSID or RSID whose header dataOffset is greater than or equal to the file size.
- Sandbox SID playback applications using firejail, bubblewrap, or equivalent so that a crash does not disrupt the host session.
- Restrict file associations so that .sid, .psid, and .rsid files do not auto-open in vulnerable players.
# Example header sanity check before passing a tune to libsidplayfp
file_size=$(stat -c%s "$1")
data_offset=$(xxd -s 6 -l 2 -p "$1" | awk '{printf "%d\n", strtonum("0x"$1)}')
if [ "$data_offset" -ge "$file_size" ]; then
echo "Rejecting $1: dataOffset ($data_offset) >= file size ($file_size)"
exit 1
fi
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

