CVE-2026-136918: FCEUX before 2.8.0 Heap Out-of-Bounds Write via UNIF MAPR Chunk Length
FCEUX before 2.8.0 contains an integer overflow in SetBoardName() in src/unif.cpp that allows crafted UNIF ROM files to write past a heap buffer. Attackers can persuade users to open a .unf file with a 0xFFFFFFFF MAPR chunk length, wrapping the allocation to zero and corrupting heap memory to crash the emulator or execute code.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users running FCEUX versions before 2.8.0 are exposed when they open an attacker-crafted UNIF ROM file with a .unf extension.
What must an attacker do to exploit the vulnerability?
The attacker must persuade a user to open a crafted .unf file. The malicious file uses a MAPR chunk length of 0xFFFFFFFF to trigger an integer overflow and heap out-of-bounds write.
What is the impact if exploitation succeeds?
Successful exploitation can corrupt heap memory, causing the emulator to crash or potentially allowing code execution.
What version addresses the issue?
FCEUX 2.8.0 addresses the vulnerability. Systems using versions before 2.8.0 should be updated.