Description
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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| TASEmulators | FCEUX | ≤ 2.8.0 | — |
References
- https://github.com/TASEmulators/fceux/pull/863 issue-tracking patch
- https://github.com/TASEmulators/fceux/commit/245b4190453a47e76814227facba320531cf0c51 patch
- https://github.com/TASEmulators/fceux/blob/v2.8.0/src/file.cpp#L99-L124 technical-description
- VulnCheck Advisory: FCEUX through 2.8.0 Heap Buffer Overflow via IPS RLE Record in ApplyIPS() third-party-advisory