ares-emulator / ares

ares is a cross-platform, open source, multi-system emulator, focusing on accuracy and preservation.
https://ares-emu.net
Other
864 stars 105 forks source link

[N64] Possible buffer overflow in RSP DMA code - potential security concern? #1502

Closed bkimmett closed 1 month ago

bkimmett commented 1 month ago

Recently, a buffer overflow was discovered in another N64 emulator, ParaLLeL Launcher's, RSP DMA code:

https://gitlab.com/parallel-launcher/parallel-n64/-/commit/fa9e2e08b0c6cde117cb05cc071cdb74a9e90ad2

Prior to being fixed, this bug was successfully exploited to escape the emulator and perform ACE on the user's computer (see https://www.twitch.tv/videos/2147408942?t=12257s for an example of this escape in action).

I'm not sure if the RSP DMA code in ares is subject to this buffer overflow or not, but I figured I should make you aware of it in case it is.

rasky commented 1 month ago

Thanks. Ares is not subject to this bug. There is a couple of reasons why Ares is more defensive than old emulators (or new emulators with old cores):

We can't rule out the existence similar bugs of course, but I would say in general we are already pretty defensive.