SDL_mixer 3.1.2 through 3.2.4 Stack-based Buffer Overflow via FetchXLaw() in AIFF 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 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.
| 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/commit/34486847a607540ce9ef5fbe20979c7140bf8c82Patch
- https://github.com/libsdl-org/SDL_mixer/blob/release-3.2.4/src/decoder_aiff.c#L86-97Technical Details
- https://github.com/libsdl-org/SDL_mixer/blob/release-3.2.4/src/decoder_aiff.c#L535-536Technical 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 AIFF 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.