Description
SDL_mixer 3.1.2 through 3.2.4 contains a stack-based buffer overflow in FetchXLaw() in src/decoder_aiff.c due to miscalculated output offsets when expanding A-law or mu-law samples. Attackers can supply a crafted AIFF-C file that overwrites roughly 1 KB of adjacent stack memory when decoded, causing crashes or potential code execution.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| libsdl-org | SDL_mixer | 3.1.2 – ≤ 3.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 | libsdl3-mixer | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libsdl2-mixer +1 | No fix yet | — |
| Ubuntu 26.04 LTS | libsdl2-mixer | No fix yet | — |
| Ubuntu 24.04 LTS | libsdl2-mixer | No fix yet | — |
| Ubuntu 22.04 LTS | libsdl2-mixer | No fix yet | — |
| Ubuntu 20.04 LTS | libsdl2-mixer | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libsdl2-mixer | No fix yet | — |
| Ubuntu 16.04 LTS | libsdl2-mixer | No fix yet | — |
| Ubuntu 14.04 LTS | libsdl2-mixer | No fix yet | — |
References
- https://github.com/libsdl-org/SDL_mixer/issues/907 issue-tracking
- https://github.com/libsdl-org/SDL_mixer/commit/34486847a607540ce9ef5fbe20979c7140bf8c82 patch
- https://github.com/libsdl-org/SDL_mixer/blob/release-3.2.4/src/decoder_aiff.c#L86-97 technical-description
- https://github.com/libsdl-org/SDL_mixer/blob/release-3.2.4/src/decoder_aiff.c#L535-536 technical-description
- https://hackmd.io/@haindpwn/sdl-mixer-fetchxlaw-stack-overflow third-party-advisory
- https://github.com/libsdl-org/SDL_mixer product
- VulnCheck Advisory: SDL_mixer 3.1.2 through 3.2.4 Stack-based Buffer Overflow via FetchXLaw() in AIFF Decoder third-party-advisory