{"id":"CVE-2026-116725","summary":"gbsplay through 0.0.103 Out-of-Bounds Read via mapper_map ROM Bank Index","details":"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.","modified":"2026-11-04T07:04:29.538946866Z","published":"2026-10-26T21:52:28.842Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-125"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116725.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116725.json"},{"type":"ADVISORY","url":"https://hackmd.io/@haindpwn/gbsplay-rom-bank-index-oob-read"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116725"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/gbsplay-through-0.0.103-out-of-bounds-read-via-mapper-map-rom-bank-index"},{"type":"REPORT","url":"https://github.com/mmitch/gbsplay/issues/201"},{"type":"FIX","url":"https://github.com/mmitch/gbsplay/commit/a281d80bc56ed63347daf740a2f7aa4f8516165a"},{"type":"PACKAGE","url":"https://github.com/mmitch/gbsplay"},{"type":"ARTICLE","url":"https://github.com/mmitch/gbsplay/blob/0.0.103/mapper.c#L71-L103"},{"type":"EVIDENCE","url":"https://hackmd.io/@haindpwn/cve-2026-116725-116726-116727-gbsplay-rom-bank-index-oob-read#Attack-flow"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mmitch/gbsplay","events":[{"introduced":"0"},{"fixed":"a281d80bc56ed63347daf740a2f7aa4f8516165a"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"last_affected":"0.0.103"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"range":[{"fixed":"a281d80bc56ed63347daf740a2f7aa4f8516165a"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["0.0.103","0.0.102","0.0.101","0.0.100","0.0.99","0.0.99-alpha-5","0.0.99-alpha-3","0.0.98","0.0.97","list","0.0.96","0.0.95","0.0.94","0.0.93","0.0.92","0.0.91","git_import","EXPORTED_TO_GIT","v0_0_9","v0_0_8","v0_0_7","v0_0_6+20040705","v0_0_5+20040312","BERLIOS_IMPORT","v0_0_5","v0_0_4+20040111","v0_0_4","v0_0_4-pre2","v0_0_4-pre1","v0_0_3+20031219","v0_0_3-pre1","v0_0_2+20031030","v0_0_2","v0_0_1","v0_0_0+20030831","v0_0_0+20030830","v0_0_0+20030826","v0_0_0+20030824","v0_0_0+20030823"],"database_specific":{"vanir_signatures":[{"source":"https://github.com/mmitch/gbsplay/commit/a281d80bc56ed63347daf740a2f7aa4f8516165a","target":{"file":"mapper.c","function":"bank_put"},"deprecated":false,"digest":{"function_hash":"87018834358573366625638833441222162530","length":217},"id":"CVE-2026-116725-19d3cec3","signature_type":"Function","signature_version":"v1"},{"deprecated":false,"digest":{"function_hash":"250370410175478577177665602526007675915","length":207},"id":"CVE-2026-116725-5e820118","signature_type":"Function","signature_version":"v1","source":"https://github.com/mmitch/gbsplay/commit/a281d80bc56ed63347daf740a2f7aa4f8516165a","target":{"function":"bank_get","file":"mapper.c"}},{"target":{"file":"mapper.c","function":"mapper_gb"},"deprecated":false,"digest":{"function_hash":"18035821310122630030331209639379563450","length":960},"id":"CVE-2026-116725-5f49ac2f","signature_type":"Function","signature_version":"v1","source":"https://github.com/mmitch/gbsplay/commit/a281d80bc56ed63347daf740a2f7aa4f8516165a"},{"signature_version":"v1","source":"https://github.com/mmitch/gbsplay/commit/a281d80bc56ed63347daf740a2f7aa4f8516165a","target":{"function":"mapper_gbs","file":"mapper.c"},"deprecated":false,"digest":{"function_hash":"177873998410109033970619664781041633140","length":529},"id":"CVE-2026-116725-60a07d9c","signature_type":"Function"},{"signature_version":"v1","source":"https://github.com/mmitch/gbsplay/commit/a281d80bc56ed63347daf740a2f7aa4f8516165a","target":{"file":"mapper.c","function":"mapper_map"},"deprecated":false,"digest":{"function_hash":"242373552413324701777295678572214305518","length":366},"id":"CVE-2026-116725-a33fa5b4","signature_type":"Function"},{"signature_version":"v1","source":"https://github.com/mmitch/gbsplay/commit/a281d80bc56ed63347daf740a2f7aa4f8516165a","target":{"file":"mapper.c"},"deprecated":false,"digest":{"line_hashes":["294144068059006068734181882910942872617","275928702020215074057022466940063807821","311815724981717589307922501954102903342","66000517991224315799915259629104718147","244296210939691360239860658063735920972","199904864772600850166995464411375475427","299874668023323468349190661603112132697","166270858364842208415595004533778790628","32074765051825570742353757910667283894","201536596271092545563964309328573012359","130428463322793214075138088452280514190","86678413892359556197405913087126472719","70479390033236618512896849542182547890","142551960081447363317713669288228661609","130428463322793214075138088452280514190","89533190395691132542713039188767607605","235461141395040616014584831618844998802","21654067507620162066155946697171677418","12632345137065748313076162014550981544","23549460632420804539737444111680959692","97836606113530253207833568917339950125","123042498265919139098321910960806940264","162167050538475187600163973928828005750","242492957667479852331761575994218892249","125251278544746527533432435537036487496","189311480368880698033750370632736161692"],"threshold":0.9},"id":"CVE-2026-116725-e8133209","signature_type":"Line"}],"vanir_signatures_modified":"2026-11-04T07:04:29Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-116725.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}]}