(Pwn2Own) Samsung Galaxy S8 Shannon Stack-based Buffer Overflow Remote Code Execution Vulnerability
A stack-based buffer overflow exists in the Samsung Galaxy S8 baseband processor when handling Status Information Elements, because the length of user-supplied data is not validated before it is copied into a fixed-length stack buffer. An attacker could exploit this by having the target answer a phone call, potentially executing code in the baseband processor context.
This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Samsung Galaxy S8. User interaction is required to exploit this vulnerability in that the target must answer a phone call.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The baseband processor copies user-supplied Status Information Element data into a fixed-length stack buffer without first checking its length.
Impact
An attacker could execute arbitrary code under the context of the baseband processor, but the target must first answer a phone call.
What the attacker needed
Target answers a phone call; attacker can send crafted network messages
The fix
Samsung addressed the issue in a security patch, with devices on the August 1st, 2018 security patch level or later including the fix.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A buffer overflow happens when a program copies more data into a fixed-size memory space than it can hold, so the extra data spills over into nearby memory. Here the phone's baseband chip, which handles the mobile network connection, does this while processing certain status messages during a call. If an attacker sends specially crafted data, they might be able to take control of that chip.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.