CVE-2026-122328

SDL_mixer 3.1.2 through 3.2.4 Stack-based Buffer Overflow via FetchXLaw() in WAV Decoder

Published Nov 5, 2026 CVSS 4.0 · 8.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

SDL_mixer 3.1.2 through 3.2.4 in the WAV decoder contains a stack-based buffer overflow in the FetchXLaw() function. A crafted A-law or mu-law WAV file can trigger a duplicated offset during float expansion, overwriting about one kilobyte of adjacent stack memory, which can lead to application crashes or potentially remote code execution. The weakness falls under CWE-121 and CWE-787.

Affected Systems

The issue impacts the SDL_mixer library from libsdl-org, version range 3.1.2 to 3.2.4. All installations using SDL_mixer within this range are vulnerable. The affected component is the WAV decoder source file, src/decoder_wav.c, inside those releases.

Risk and Exploitability

The CVSS score of 8.5 indicates a high severity. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is the delivery of a malicious WAV file to any process that runs SDL_mixer. An attacker who can compel or trick the target application to load such a file can trigger the overflow, potentially leading to a crash or arbitrary code execution. Without additional mitigations, the exploitation conditions are relatively straightforward for an actor who has either local access or can influence file loading from a remote source.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SDL_mixer to 3.2.5 or later, which includes a fix for the FetchXLaw buffer overflow.
  • Restrict the application to load only trusted WAV files, using directory whitelisting or file signature checks before decoding.
  • Enable stack canaries and address space layout randomization (ASLR) on the host system to mitigate the impact of any remaining overflow vulnerabilities.

Generated by OpenCVE AI on November 6, 2026 at 13:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Libsdl-org
Libsdl-org sdl Mixer
Vendors & Products Libsdl-org
Libsdl-org sdl Mixer
Type Values Removed Values Added
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.
Title SDL_mixer 3.1.2 through 3.2.4 Stack-based Buffer Overflow via FetchXLaw() in WAV Decoder
Weaknesses CWE-121
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 9, 2026, 5:08 PM
Reserved
Nov 4, 2026, 11:26 PM
Status
Awaiting Analysis
Published
Nov 5, 2026, 4:17 PM
Modified
Nov 12, 2026, 8:57 PM
Severity
Important
Public date
Nov 5, 2026, 3:11 PM