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.
Published: 2026-11-05
Score: 8.5 High
EPSS: n/a
KEV: No
Impact: Stack-based Buffer Overflow
Action: Patch Now
AI Analysis

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.

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.

Generated by OpenCVE AI on November 5, 2026 at 17:05 UTC.

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 5, 2026 at 17:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 05 Nov 2026 15:30:00 +0000

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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-05T15:11:47.143Z

Reserved: 2026-11-04T23:26:08.935Z

Link: CVE-2026-122328

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-05T16:17:45.853

Modified: 2026-11-05T16:17:45.853

Link: CVE-2026-122328

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-05T17:15:07Z

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow