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.
Severity (CVSS)
| Base score | 8.5 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-121 — Stack-based Buffer Overflow
Affected products
| Vendor | Product | Versions |
|---|---|---|
| libsdl-org | SDL_mixer | 3.1.2 to <=3.2.4 [affected] |
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)
- https://www.vulncheck.com/advisories/sdl-mixer-3.1.2-through-3.2.4-stack-based-buffer-overflow-via-fetchxlaw-in-wav-decoder (third-party-advisory)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 06 Nov 2026 08:03 UTC.