---
id: CVE-2026-122329
title: >-
  SDL_mixer 3.1.2 through 3.2.4 Stack-based Buffer Overflow via FetchXLaw() in
  AIFF Decoder
summary: >-
  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 overwri…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-121
vendor: libsdl-org
product: SDL_mixer
affected:
  - SDL_mixer >= 3.1.2 <= 3.2.4
published: '2026-11-05'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T15:11:47.851Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-122329'
references:
  - url: 'https://github.com/libsdl-org/SDL_mixer/issues/907'
  - url: >-
      https://github.com/libsdl-org/SDL_mixer/commit/34486847a607540ce9ef5fbe20979c7140bf8c82
  - url: >-
      https://github.com/libsdl-org/SDL_mixer/blob/release-3.2.4/src/decoder_aiff.c#L86-97
  - url: >-
      https://github.com/libsdl-org/SDL_mixer/blob/release-3.2.4/src/decoder_aiff.c#L535-536
  - url: 'https://hackmd.io/@haindpwn/sdl-mixer-fetchxlaw-stack-overflow'
  - url: 'https://github.com/libsdl-org/SDL_mixer'
  - url: >-
      https://www.vulncheck.com/advisories/sdl-mixer-3.1.2-through-3.2.4-stack-based-buffer-overflow-via-fetchxlaw-in-aiff-decoder
    label: >-
      VulnCheck Advisory: SDL_mixer 3.1.2 through 3.2.4 Stack-based Buffer
      Overflow via FetchXLaw() in AIFF Decoder
tags:
  - cve.org
ingestedAt: '2026-11-05T21:36:00.893Z'
epss: 0.0016
epssPercentile: 0.05146
---

## Overview

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.

## Affected

- `SDL_mixer >= 3.1.2 <= 3.2.4`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
