Description
libsidplayfp through 3.1.1 contains a heap out-of-bounds read vulnerability that allows attackers to crash applications by supplying a PSID/RSID file with an unchecked data offset. Attackers can set the header data offset beyond the file size, wrapping the length calculation so resolveAddrs() reads up to 64 KiB past the heap buffer.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| libsidplayfp | libsidplayfp | ≤ 3.1.1 | — |
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 | libsidplayfp | No fix yet | — |
| Debian 13 | libsidplayfp | No fix yet | — |
| Debian 12 | libsidplayfp | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libsidplayfp | No fix yet | — |
| Ubuntu 26.04 LTS | libsidplayfp | No fix yet | — |
| Ubuntu 24.04 LTS | libsidplayfp | No fix yet | — |
| Ubuntu 22.04 LTS | libsidplayfp | No fix yet | — |
| Ubuntu 20.04 LTS | libsidplayfp | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libsidplayfp | No fix yet | — |
| Ubuntu 16.04 LTS | libsidplayfp | No fix yet | — |
References
- https://hackmd.io/@haind-pwn/libsidplayfp-psid-dataoffset-underflow-oob-read technical-description exploit
- https://github.com/libsidplayfp/libsidplayfp/blob/732fa8ec8131fc75aafc2eaea583ddcdeea2a3cc/src/sidtune/SidTuneBase.cpp#L295-L300 technical-description
- https://github.com/libsidplayfp/libsidplayfp/blob/732fa8ec8131fc75aafc2eaea583ddcdeea2a3cc/src/sidtune/SidTuneBase.cpp#L488-L500 technical-description
- https://github.com/libsidplayfp/libsidplayfp product
- VulnCheck Advisory: libsidplayfp through 3.1.1 Heap Out-of-Bounds Read via SidTuneBase::acceptSidTune third-party-advisory