Skip to main content

SDL_mixer CVE-2026-122328

| EUVDEUVD-2026-117536 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-11-05 VulnCheck GHSA-7qqc-5rvj-wqqw
8.5
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious A-law/mu-law WAV file
  2. Delivery
    Deliver file to victim application
  3. Exploit
    Victim app decodes via FetchXLaw()
  4. Execution
    Overwrite ~1 KB adjacent stack memory
  5. Impact
    Crash or potential code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that an application using SDL_mixer versions 3.1.2 through 3.2.4 decode an attacker-supplied WAV file encoded with A-law or mu-law compression, which routes through the vulnerable FetchXLaw() path in src/decoder_wav.c; the bug is the output pointer being computed as &buffer[(length-1)*4] instead of buffer, causing the float expansion to write past the buffer. Limiting factors: the CVSS vector is AV:L with UI:P (passive user interaction), so an attacker cannot trigger this purely remotely - a local user or application must load and decode the crafted file; no authentication or elevated privileges are needed (PR:N) once the file reaches the decoder. Exploitation is bounded to the vulnerable process (no scope change), and reaching code execution rather than a crash depends on the target's stack layout and memory-protection mitigations.

Impact

This is a genuine but access-constrained memory-safety flaw, not an internet-facing emergency. The vendor-supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H, base 8.5) describes a local attack vector with passive user interaction, no required privileges, and high impact to confidentiality, integrity and availability of the vulnerable system, with no subsequent-system (scope) impact. The AV:L plus UI:P combination is the decisive signal: exploitation is not remote-unauthenticated in the network sense - it requires getting a crafted WAV file to an application that uses SDL_mixer and having that application decode it. The stack-based overflow (CWE-121) in FetchXLaw() overwriting ~1 KB of adjacent stack memory is consistent with 'potentially code execution,' but the sources describe crashes as the confirmed outcome and RCE as potential. EPSS is not provided, so exploitation probability cannot be quantified. The CVE is not in CISA KEV, so there is no evidence of active exploitation. A VulnCheck advisory and a third-party hackmd technical writeup exist, indicating the flaw is publicly analyzed, and the upstream fix (PR #910 / commit df966f69) is published, which lowers the barrier to writing a working exploit. The vuln.today decision label is 'this_week,' aligning with a serious-but-not-active-exploitation posture. Net: prioritize patching within the week for any product bundling SDL_mixer that processes untrusted WAV input; treat RCE as plausible-but-unconfirmed and local-delivery-dependent rather than a widespread remote threat.

Exploit ScenarioDerived

An attacker crafts a malicious A-law or mu-law WAV file and distributes it through a channel the target application ingests - a game mod, downloaded audio asset, chat attachment, or user-supplied sound pack. When a program built on SDL_mixer 3.1.2-3.2.4 decodes the file via FetchXLaw(), the doubly-offset float expansion writes past the stack buffer, corrupting about 1 KB of adjacent stack memory. A public PoC reference (the hackmd writeup) exists but is not verified as working exploit code; the likely outcome is a crash, with code execution potential depending on stack layout and mitigations.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 05, 2026

Decoding an A-law or mu-law compressed WAV file with SDL_mixer 3.1.2 through 3.2.4 can overwrite roughly 1 KB of adjacent stack memory in FetchXLaw() (src/decoder_wav.c), crashing the decoding application and potentially enabling code execution depending on that build's stack layout and memory protections. The flaw is access-constrained rather than internet-facing: the vector is local (AV:L) with passive user interaction (UI:P) and no privileges required (PR:N), so an attacker must get a crafted WAV in front of an application that uses the affected library, and impact stays within that process (no scope change). An upstream fix is committed (PR #910, commit df966f6), a public technical writeup exists but is not verified as working exploit code, and no CISA KEV active exploitation was reported in the supplied data.

RemediationAI

The upstream correction is the one-line pointer fix in SDL_mixer PR #910, merged as commit df966f698e18ae849bd92796a26311e79c555718, which changes the output pointer in FetchXLaw() from &buffer[(length - 1) * 4] to buffer; builds must be rebuilt against a source tree or tagged release that contains that commit, and because the supplied data lists the fix as a PR/commit rather than a released version number, confirm with the maintainers or the VulnCheck advisory (https://www.vulncheck.com/advisories/sdl-mixer-3.1.2-through-3.2.4-stack-based-buffer-overflow-via-fetchxlaw-in-wav-decoder) which release carries it before treating a package update as complete. Where an application cannot immediately be rebuilt, the exposure is confined to the A-law/mu-law decode path, so rejecting or transcoding untrusted companded WAV files to linear PCM before they reach SDL_mixer removes the trigger, at the cost of added preprocessing and the risk that legitimate companded assets are blocked; note that this reduces exposure only for inputs that pass through the filtering layer, so it is a stopgap rather than a substitute for the pointer fix. Details of the defect and the fix are tracked in upstream issue https://github.com/libsdl-org/SDL_mixer/issues/907.

Affected VersionsENISA

SDL_mixer 3.1.2 ≤3.2.4

Affected Packages

euvd sdl_mixer no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

SDL_mixer is a standalone audio-mixing library built on SDL and used by games and media front-ends to load WAV, FLAC, MP3, Ogg and similar formats; the CPE cpe:2.3:a:libsdl-org:sdl_mixer confirms the affected component is the libsdl-org library itself rather than a single downstream application. The vulnerable path is FetchXLaw() in src/decoder_wav.c, the conversion routine used when a WAV file declares G.711 A-law or mu-law companding instead of linear PCM; the routine expands the compressed 8-bit samples into float output. Per the upstream diff in PR #910, the output pointer was computed as &buffer[(length - 1) * 4] instead of buffer, i.e. the float expansion was anchored near the end of the destination rather than its start, so each converted sample wrote beyond the intended region and approximately 1 KB of adjacent stack memory was clobbered. That is a classic CWE-121 stack-based buffer overflow: the overwrite occurs on the stack, so consequences range from an immediate crash to control-flow corruption and possible code execution, bounded by the target's stack layout and mitigations (stack canaries, ASLR, NX). The assessed severity is high (CVSS 4.0 base 8.5; assessed 3.1 vector AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) but the attack surface requires file delivery to a decoder - there is no network-reachable trigger in the evidence, and the exact conditions that turn the overwrite into reliable code execution are not described in the available sources.

Know when Sdl Mixer gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.5 HIGH
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
vuln.today AI 7.8 HIGH

File must be decoded locally by the application (AV:L) and a user/app must open it (UI:R); no privileges needed (PR:N); stack corruption yields high C/I/A within the unchanged process scope.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 7.8 HIGH

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A high-severity memory corruption vulnerability in SDL_mixer, a widely used audio decoding library, could allow an attacker to crash or potentially execute code within applications that process malicious WAV files. While exploitation requires local delivery of a crafted file and user interaction, successful attacks could disrupt operations or compromise systems across any product line embedding this library.

Business Impact: High
Compensating Controls

Vendor-released patch: SDL_mixer 3.2.5 (commit df966f6)

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Medium
widely-used audio library in games/multimedia, but not universally deployed
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy