Description
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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| TASEmulators | FCEUX | < 2.8.0 | 2.8.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | fceux | No fix yet | — |
| Debian 13 | fceux | No fix yet | — |
| Debian 12 | fceux | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | fceux | No fix yet | — |
| Ubuntu 26.04 LTS | fceux | No fix yet | — |
| Ubuntu 24.04 LTS | fceux | No fix yet | — |
| Ubuntu 22.04 LTS | fceux | No fix yet | — |
| Ubuntu 20.04 LTS | fceux | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | fceux | No fix yet | — |
| Ubuntu 16.04 LTS | fceux | No fix yet | — |
References
- https://github.com/TASEmulators/fceux/issues/862 issue-tracking
- https://github.com/TASEmulators/fceux/commit/d9132c2a37bf05e31b8a09f9ad938d46ff193bf1 patch
- FCEUX v2.8.0 Release Notes release-notes
- https://github.com/TASEmulators/fceux/blob/fceux-2.7.0/src/unif.cpp#L281-L285 technical-description
- VulnCheck Advisory: FCEUX before 2.8.0 Heap Out-of-Bounds Write via UNIF MAPR Chunk Length third-party-advisory