SDL_mixer: Stack-based buffer overflow in FetchXLaw (CVE-2026-122329)
SDL_mixer versions 3.1.2 through 3.2.4 are vulnerable to a stack-based buffer overflow in the FetchXLaw function that can be triggered by malicious AIFF-C files.
CVE search metadata
CVE search record: CVE-2026-122329. Severity: high. CVSS: 7.8. KEV: no. Product: SDL_mixer (3.1.2 - 3.2.4). Brief: SDL_mixer: Stack-based buffer overflow in FetchXLaw (CVE-2026-122329). Brief link: https://feed.craftedsignal.io/briefs/2026-11-sdl-mixer-overflow-4b26a28c/
Triage facts
Revision 1- Applicability
- SDL_mixer (3.1.2 - 3.2.4)
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 1 public source
- Freshness
- Revision 1Nov 5, 18:22 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A1Roughly even chance
SDL_mixer versions 3.1.2 through 3.2.4 contain a stack-based buffer overflow in the FetchXLaw() function located in src/decoder_aiff.c. The vulnerability stems from an incorrect calculation of output offsets when processing A-law or mu-law audio samples within AIFF-C files. Successful exploitation allows an attacker to overwrite approximately 1 KB of adjacent stack memory, which can lead to application crashes or potential arbitrary code execution.
Impact
Successful exploitation may result in an application crash (Denial of Service) or potential arbitrary code execution depending on the memory layout and the presence of exploit mitigation protections within the host application.
Recommendation
- Inventory all applications utilizing SDL_mixer library versions 3.1.2 through 3.2.4.
- Prioritize upgrading to the latest patched version of SDL_mixer once available.
- Implement memory safety protections (e.g., stack canaries, DEP, ASLR) at the build or runtime level for applications that process untrusted AIFF-C audio files.
- Perform input validation or sandboxing for applications that handle AIFF-C files from external, untrusted sources.
Immediate actions
Identify and inventory all software components using SDL_mixer 3.1.2-3.2.4
Threat Hunt
Monitor for abnormal crash events in applications known to process AIFF-C files
Data: Application crash logs, EDR process termination events
Mitigations
Upgrade SDL_mixer to a non-vulnerable version as soon as a patch is released
CVE-2026-122329