Description
SDL_mixer 3.1.2 through 3.2.4 contains a stack-based buffer overflow vulnerability in FetchXLaw() of src/decoder_wav.c when decoding A-law or mu-law WAV files. Attackers can supply a crafted WAV file whose doubly-offset float expansion overwrites about 1 KB of adjacent stack memory, causing crashes or potentially 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/pull/910 patch issue-tracking
- https://github.com/libsdl-org/SDL_mixer/commit/df966f698e18ae849bd92796a26311e79c555718 patch
- https://github.com/libsdl-org/SDL_mixer/blob/release-3.2.4/src/decoder_wav.c#L750-761 technical-description
- https://github.com/libsdl-org/SDL_mixer/blob/release-3.2.4/src/decoder_wav.c#L1658-1659 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 WAV Decoder third-party-advisory