CVE-2026-142492: FCEUX through 2.8.0 Heap Buffer Overflow via IPS RLE Record in ApplyIPS()
FCEUX through 2.8.0 contains a heap buffer overflow vulnerability in ApplyIPS() in src/file.cpp that allows attackers to write out of bounds by supplying a crafted IPS patch file with a zero-length RLE record. Attackers can distribute a ROM with a malicious sidecar .ips file that is auto-applied on open, writing 65536 chosen bytes at a chosen offset to corrupt heap memory and potentially execute code.
Affected Software
Event History
Frequently Asked Questions
Which installations are affected?
FCEUX versions through 2.8.0 are affected. The issue is in the IPS patch-handling code in ApplyIPS().
What must an attacker do to trigger the overflow?
The attacker must provide a crafted IPS patch containing a zero-length RLE record. A ROM distributed with a malicious sidecar .ips file can trigger the issue when the ROM is opened and the sidecar patch is automatically applied.
What can be done while patching is unavailable?
Do not open untrusted ROM packages that include sidecar .ips patch files. Review or remove accompanying .ips files before opening ROMs from untrusted sources.
How can potentially malicious patch files be identified?
Inspect IPS files associated with ROMs for RLE records with a zero length. Such a record can cause FCEUX to write 65,536 attacker-chosen bytes at an attacker-chosen offset.