Description
SDL_mixer 3.1.2 through 3.2.4 contains a stack-based buffer overflow in FetchXLaw() in src/decoder_aiff.c due to miscalculated output offsets when expanding A-law or mu-law samples. Attackers can supply a crafted AIFF-C file that overwrites roughly 1 KB of adjacent stack memory when decoded, causing crashes or potential code execution.
Published: 2026-11-05
Score: 8.5 High
EPSS: n/a
KEV: No
Impact: Potential remote code execution via stack-based buffer overflow
Action: Immediate Patch
AI Analysis

Impact

SDL_mixer versions 3.1.2 through 3.2.4 contain a stack-based buffer overflow in the FetchXLaw() function within src/decoder_aiff.c. The vulnerability arises from miscalculated output offsets when expanding A‑law or mu‑law samples in AIFF‑C files. An attacker can craft a malicious AIFF‑C file that, when decoded, overwrites roughly 1 kB of adjacent stack memory. This overflow can cause application crashes or, depending on the environment, may lead to remote code execution by corrupting control data such as return addresses. The impact therefore includes availability loss and a potential elevation of privilege or code execution within the process context of any application that loads the vulnerable SDL_mixer library.

Affected Systems

The vulnerability affects the SDL_mixer library provided by libsdl-org, specifically all releases from 3.1.2 up to and including 3.2.4. End‑users of any software that embeds these library versions and processes AIFF‑C audio files are at risk.

Risk and Exploitability

The CVSS score of 8.5 indicates a high severity of the flaw. No EPSS data is available, and the vulnerability is not listed in the CISA KEV catalog, indicating that official exploitation may not yet be widespread. The most likely attack vector is through a malicious AIFF‑C file supplied to an application that uses SDL_mixer for audio decoding; the attacker needs only to provide the crafted file to the vulnerable application. Given the nature of the buffer overflow, exploitation is feasible in a typical local context where the application runs with elevated privileges, hence the need for immediate remediation.

Generated by OpenCVE AI on November 5, 2026 at 16:38 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SDL_mixer to version 3.2.5 or later, which patches the FetchXLaw() overflow.
  • If an upgrade is not immediately possible, isolate the SDL_mixer library or restrict its use to trusted audio sources and validate all AIFF‑C files for correct format before decoding.
  • Implement additional input validation or sandboxing around the audio decoding process to prevent stack corruption from reaching critical application code.

Generated by OpenCVE AI on November 5, 2026 at 16:38 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 in FetchXLaw() in src/decoder_aiff.c due to miscalculated output offsets when expanding A-law or mu-law samples. Attackers can supply a crafted AIFF-C file that overwrites roughly 1 KB of adjacent stack memory when decoded, causing crashes or potential code execution.
Title SDL_mixer 3.1.2 through 3.2.4 Stack-based Buffer Overflow via FetchXLaw() in AIFF 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.851Z

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

Link: CVE-2026-122329

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-122329

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-05T16:45:06Z

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow