Description
gbsplay through 0.0.103 contains an out-of-bounds read vulnerability in mapper_map() in mapper.c that fails to reject ROM bank indexes beyond the ROM size, causing an underflowed bank length. Attackers can supply crafted .gbr, .gbs or .gb files with malicious bank indexes to make bank_get() read far past the heap ROM buffer and crash the player.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
mmitch gbsplay
Default version status: unaffected
0 to ≤ 0.0.103affected
pkg:github/mmitch/gbsplayReferences
- https://github.com/mmitch/gbsplay/issues/201 ↗
- https://github.com/mmitch/gbsplay ↗
- https://github.com/mmitch/gbsplay/commit/a281d80bc56ed63347daf740a2f7aa4f8516165a ↗
- https://github.com/mmitch/gbsplay/blob/0.0.103/mapper.c#L71-L103 ↗
- https://hackmd.io/@haindpwn/gbsplay-rom-bank-index-oob-read ↗
- https://www.vulncheck.com/advisories/gbsplay-through-0.0.103-out-of-bounds-read-via-mapper-map-rom-bank-index ↗