SDL_mixer: Stack-based buffer overflow in FetchXLaw() (CVE-2026-122328)
SDL_mixer versions 3.1.2 through 3.2.4 contain a stack-based buffer overflow in the FetchXLaw() function that can be triggered by a malformed WAV file, potentially leading to arbitrary code execution.
CVE search metadata
CVE search record: CVE-2026-122328. 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-122328). Brief link: https://feed.craftedsignal.io/briefs/2026-11-sdl-mixer-overflow/
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
- A1Likely
SDL_mixer versions 3.1.2 through 3.2.4 are vulnerable to a stack-based buffer overflow in the FetchXLaw() function within src/decoder_wav.c. The vulnerability occurs during the decoding of A-law or mu-law encoded WAV files. A crafted input file triggers a doubly-offset float expansion that overwrites approximately 1 KB of adjacent stack memory. Successful exploitation can result in application crashes or arbitrary code execution.
Impact
The vulnerability allows an attacker to cause memory corruption, leading to application instability (crashes) or potential remote code execution depending on the context in which the affected application processes the malicious media file.
Recommendation
- Inventory applications utilizing SDL_mixer library versions 3.1.2 through 3.2.4.
- Monitor for applications that load media files from untrusted sources and link against these vulnerable library versions.
- Patch or update to a non-vulnerable version of SDL_mixer as soon as one is made available by the vendor.
Immediate actions
Inventory software dependencies to identify instances of SDL_mixer 3.1.2 through 3.2.4
Threat Hunt
Identify applications loading external WAV files that crash or exhibit abnormal restart behavior
Data: Application crash logs, Process exit codes
Mitigations
Update to a patched version of SDL_mixer once available from the vendor
CVE-2026-122328