CVE-2026-136919 in FCEUXinfo

Summary

by MITRE • 11/25/2026

FCEUX 2.5.0 before 2.8.0 contains an integer overflow in iNESLoad() in src/ines.cpp that allows a crafted NES 2.0 ROM to write past a heap buffer. Attackers can persuade users to open a .nes file using exponent-multiplier PRG ROM size notation with mappers 53, 198, 228 or 547 to corrupt memory, crashing the emulator and possibly executing code.

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Analysis

by VulDB Data Team • 11/25/2026

The vulnerability identified in FCEUX versions prior to 2.8.0 represents a critical security flaw rooted in improper integer arithmetic within the iNESLoad function located in src/ines.cpp. This specific implementation error manifests as an integer overflow when processing NES ROM files, particularly those adhering to the NES 2.0 format specification. The core technical issue arises from how the emulator calculates memory allocation sizes based on metadata embedded within the ROM header. When a maliciously crafted .nes file is processed, the parser fails to correctly validate or clamp numerical values used for buffer sizing calculations, leading to an arithmetic overflow that results in a significantly smaller allocated heap buffer than required by the actual data payload described in the file.

The exploitation vector relies on persuading users to open specially constructed ROM files using specific mapper configurations known as mappers 53, 198, 228, and 547. These particular memory mapping schemes utilize exponent-multiplier notation for defining PRG (Program) ROM sizes. In a normal operational context, this notation allows for the representation of large memory spaces efficiently. However, in vulnerable versions of FCEUX, the conversion logic from these exponential values to linear byte counts is flawed. The integer overflow causes the calculated size to wrap around or truncate incorrectly, resulting in an allocation that is far too small relative to the amount of data the emulator attempts to read and write into it during the initialization phase.

This memory corruption leads directly to a heap buffer overflow condition. As the emulator proceeds to load the ROM content, it writes data beyond the boundaries of the allocated heap segment. This out-of-bounds write corrupts adjacent memory structures on the heap, which can lead to immediate application instability and crashes in most scenarios due to segmentation faults or access violations triggered by the operating system's memory protection mechanisms. However, under controlled conditions where an attacker carefully crafts the overflow payload, this vulnerability allows for arbitrary code execution. By overwriting critical data structures such as function pointers or object headers on the heap, a remote attacker can redirect program flow and execute malicious shellcode within the context of the user running FCEUX.

From a classification perspective, this flaw aligns with CWE-190, which describes Integer Overflow or Wraparound, specifically occurring during arithmetic operations that determine buffer sizes. The attack pattern corresponds to ATT&CK technique T1203, Exploitation for Client Execution, as it involves tricking the user into opening a malicious file to trigger code execution on their local machine. It also relates to CWE-787, Out-of-bounds Write, which is the direct consequence of the integer miscalculation allowing memory corruption beyond allocated limits. The severity is heightened by the fact that FCEUX is an emulator often used for gaming and preservation activities where users may open files from untrusted sources or community forums without rigorous verification.

Mitigation strategies primarily involve upgrading to version 2.8.0 of FCEUX, which contains patches addressing this integer overflow in iNESLoad(). For environments unable to update immediately, defensive measures include restricting the execution of emulator binaries through application whitelisting policies and disabling file associations for .nes files if not strictly necessary. Users should be educated on the risks associated with opening ROM files from untrusted origins. Additionally, enabling heap protection mechanisms such as Address Space Layout Randomization (ASLR) and Data Execution Prevention (DEP) can mitigate the likelihood of successful code execution by making it more difficult to predict memory layouts and execute injected shellcode, although these are compensating controls rather than fixes for the underlying vulnerability.

Responsible

VulnCheck

Reservation

11/25/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00241

KEV

no

Activities

very low

Sources

Do you need the next level of professionalism?

Upgrade your account now!