Description
Game Music Emu (libgme) through 0.6.5 contains a heap out-of-bounds read vulnerability in the AY loader get_data function caused by an integer underflow in the track-table bounds check. Attackers can supply a crafted ZXAYEMUL file with an oversized track table to read past the file buffer via gme_track_info or gme_start_track, crashing libgme consumers.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| libgme | game-music-emu | ≤ 0.6.5 | — |
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 | game-music-emu | No fix yet | — |
| Debian 13 | game-music-emu | No fix yet | — |
| Debian 12 | game-music-emu | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | game-music-emu | No fix yet | — |
| Ubuntu 26.04 LTS | game-music-emu | No fix yet | — |
| Ubuntu 24.04 LTS | game-music-emu | No fix yet | — |
| Ubuntu 22.04 LTS | game-music-emu | No fix yet | — |
| Ubuntu 20.04 LTS | game-music-emu | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | game-music-emu | No fix yet | — |
| Ubuntu Pro 16.04 LTS | game-music-emu | No fix yet | — |
| Ubuntu Pro 14.04 LTS | game-music-emu | No fix yet | — |
References
- https://hackmd.io/@haind-pwn/libgme-ay-track-table-underflow-oob-read technical-description exploit
- https://github.com/libgme/game-music-emu/blob/9e23d10f9fd2a6a2f33b10912dd8dc7153258995/gme/Ay_Emu.cpp#L53-L80 technical-description
- https://github.com/libgme/game-music-emu/commit/ae10a8f05479e3c8f80429e7a59759fed06f8c13 patch
- https://github.com/libgme/game-music-emu product
- VulnCheck Advisory: Game Music Emu (libgme) through 0.6.5 Heap Out-of-Bounds Read via AY Loader third-party-advisory