SDL_mixer 3.1.2 through 3.2.4 Stack-based Buffer Overflow via FetchXLaw() in WAV Decoder
- State
- Published
- Severity
- 8.5 High
- Published
- Nov 5, 2026
- Updated
- Nov 9, 2026
- Reserved
- Nov 4, 2026
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.
| Product | Versions |
|---|---|
| SDL_mixer libsdl-org | 3.1.2 through 3.2.4 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.5 High | VulnCheck | |
| 3.1 | 7.8 High | VulnCheck |
Weaknesses
- CWE-121 Stack-based Buffer Overflow
References
- https://github.com/libsdl-org/SDL_mixer/issues/907Issue Tracker
- https://github.com/libsdl-org/SDL_mixer/pull/910PatchIssue Tracker
- https://github.com/libsdl-org/SDL_mixer/commit/df966f698e18ae849bd92796a26311e79c555718Patch
- https://github.com/libsdl-org/SDL_mixer/blob/release-3.2.4/src/decoder_wav.c#L750-761Technical Details
- https://github.com/libsdl-org/SDL_mixer/blob/release-3.2.4/src/decoder_wav.c#L1658-1659Technical Details
- https://hackmd.io/@haindpwn/sdl-mixer-fetchxlaw-stack-overflowThird-Party Advisory
- https://github.com/libsdl-org/SDL_mixerProduct Page
- VulnCheck Advisory: SDL_mixer 3.1.2 through 3.2.4 Stack-based Buffer Overflow via FetchXLaw() in WAV DecoderThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.