Vulnerability DatabaseCVE-2026-134856

CVE-2026-134856: 
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2026-134856 is a heap out-of-bounds read vulnerability in the SNES emulator Snes9x affecting all versions up to and including 1.63. The flaw resides in the S9xUnfreezeFromStream() function within snapshot.cpp, specifically in the Save-State Screenshot Restoration ("SHO" chunk) logic. It was reported via a GitHub issue on October 23, 2026, and published to the NVD and GitHub Advisory Database on November 23, 2026; the Snes9x project had not responded at time of disclosure. It carries a CVSS v3.1 base score of 5.3 (Medium) and a CVSS v4.0 base score of 1.9 (Low) (GitHub Advisory, Snes9x Issue).

Technical details

The root cause is improper input validation (CWE-125: Out-of-bounds Read; CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer) when processing the Width and Height fields from the SHO block of a .snes9x save-state file. While the rendered screen dimensions are clamped to supported maximums (MAX_SNES_WIDTH / MAX_SNES_HEIGHT), the row-advancement pointer (rowpix += 3 * ssi->Width) still uses the original, unvalidated width from the file. The screenshot data buffer is a fixed-size array of 734,208 bytes (uint8 Data[MAX_SNES_WIDTH * MAX_SNES_HEIGHT * 3]); with crafted values such as Width = Height = 65535, the pointer advances ~199,677 bytes per row and escapes the buffer after only four rows, causing a heap-buffer-overflow read. The vulnerability is locally exploitable by a low-privileged user who can induce the target to load a crafted save-state file, and is also reachable via retro_unserialize() in the Snes9x libretro core (Snes9x Issue, GitHub Advisory).

Impact

Successful exploitation causes the Snes9x emulator process to crash (segmentation fault / heap-buffer-overflow), resulting in a denial of service. Additionally, the out-of-bounds read may expose adjacent heap memory contents — potentially including other program data or sensitive runtime information — to the attacker, representing a low-severity confidentiality and integrity impact. Applications embedding the Snes9x libretro core are also affected when processing untrusted save-state data, broadening the attack surface beyond the standalone emulator (Snes9x Issue, GitHub Advisory).

Exploitability

A proof-of-concept (PoC) save-state file (snes9x_snapshot_oob.zip) and a Python generator script (gen_poc.py) were publicly released alongside the GitHub issue report, confirming public exploit availability (Snes9x Issue). The EPSS score is 0.0, indicating very low probability of widespread exploitation, and there is no evidence of active in-the-wild exploitation or threat actor attribution at this time. The CVE status is listed as "Deferred" and the vulnerability is not present in the CISA KEV catalog. Exploitation requires local access and low privileges, limiting the practical attack surface (GitHub Advisory).

Exploitation steps

  1. Craft a malicious save-state file: Using the publicly available gen_poc.py script or manually, create a .snes9x save-state file with the Width and Height fields in the SHO (screenshot) chunk set to extreme values (e.g., 65535 × 65535). The rest of the save-state can be derived from a valid game save.
  2. Distribute the malicious file: Package the crafted .snes9x file and deliver it to the target user, disguised as a legitimate game save (e.g., shared via forums, file-sharing sites, or direct transfer).
  3. Induce the victim to load the file: Social-engineer the target into loading the crafted save-state in Snes9x (standalone GUI, command-line with -loadsnapshot, or via a libretro frontend).
  4. Trigger the out-of-bounds read: When S9xUnfreezeFromStream() processes the SHO chunk, it clamps rendered dimensions but uses the unvalidated ssi->Width for row pointer advancement (rowpix += 3 * ssi->Width), causing the pointer to escape the 734,208-byte screenshot buffer after ~4 rows.
  5. Achieve denial of service (or memory disclosure): The emulator crashes with a segmentation fault (or heap-buffer-overflow detected by ASAN), achieving denial of service. In non-instrumented builds, adjacent heap memory may be read before the crash, potentially leaking sensitive data (Snes9x Issue).

Indicators of compromise

  • File System: Presence of unexpected or externally sourced .snes9x save-state files, particularly those with anomalously small file sizes relative to a full game save; presence of poc_tiny.snes9x or files from snes9x_snapshot_oob.zip.
  • Process: Snes9x process terminating unexpectedly with exit code 139 (SIGSEGV) or an AddressSanitizer heap-buffer-overflow report referencing snapshot.cpp:1798 in S9xUnfreezeFromStream().
  • Logs: System crash logs or core dumps referencing snes9x with stack traces pointing to S9xUnfreezeFromStream() → S9xUnfreezeGame() in snapshot.cpp; ASAN output showing READ of size 1 at an address just beyond a ~734,214-byte heap region (Snes9x Issue).

Mitigation and workarounds

No official patched release from the Snes9x project was available at the time of disclosure, as the project had not yet responded to the issue report. A GitHub Advisory (GHSA-65v7-5m96-v7xg) has been published and users should monitor the Snes9x repository for a fix. In the interim, avoid loading .snes9x save-state files from untrusted or unknown sources, and validate the integrity of save-state files before loading them. Organizations using the Snes9x libretro core should similarly restrict processing of untrusted save-state data until a patch is available (GitHub Advisory, Snes9x Issue).

Community reactions

The vulnerability was reported responsibly via a GitHub issue by researcher "suywang" on October 23, 2026, with a detailed root cause analysis, reproduction steps, and a PoC attached. The Snes9x project had not publicly responded to the issue at the time of CVE publication. The advisory was noted by automated vulnerability tracking services including VulDB, Cloudflare Radar, and CIRCL, but has not attracted significant broader media or security community commentary, consistent with its low CVSS severity and local-only attack vector (Snes9x Issue, GitHub Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Affected

bookworm

libretro-snes9x

Affected

sid

libretro-snes9x

Affected

trixie

libretro-snes9x

Affected

Ubuntu

Unknown

bionic (esm-apps)

libretro-snes9x

Unknown

devel

libretro-snes9x

Unknown

focal (esm-apps)

libretro-snes9x

Unknown

jammy

libretro-snes9x

Unknown

jammy (esm-apps)

libretro-snes9x

Unknown

noble

libretro-snes9x

Unknown

noble (esm-apps)

libretro-snes9x

Unknown

resolute

libretro-snes9x

Unknown

Source: This report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-134844HIGH7.5
  • Linux Debian logoLinux Debian
  • libpgjava
NoNoNov 23, 2026
CVE-2026-134843HIGH7.5
  • Linux Debian logoLinux Debian
  • libpgjava
NoNoNov 23, 2026
CVE-2026-134845HIGH7.4
  • Linux Debian logoLinux Debian
  • libpgjava
NoNoNov 23, 2026
CVE-2026-134847MEDIUM6.5
  • Linux Debian logoLinux Debian
  • libpgjava
NoNoNov 23, 2026
CVE-2026-134846MEDIUM6.5
  • Linux Debian logoLinux Debian
  • libpgjava
NoNoNov 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management