Skip to content
Memory corruption Advisory Advanced CVE-2018-14318

(Pwn2own) Samsung Galaxy S8 Shannon GPRS Stack-based Buffer Overflow Remote Code Execution Vulnerability

The Shannon baseband in the Samsung Galaxy S8 fails to validate the length of IPCP header data before copying it into a fixed-size stack buffer. A remote attacker can exploit this to execute arbitrary code in the baseband processor.

acez Follow

Originally disclosed on Zero Day Initiative

Medium 6.8 View original

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 have their cellular radios enabled.

Acez, on the Zero Day Initiative

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 code copies user-supplied IPCP header data into a fixed-length stack buffer without first checking the data's length.

Impact

An attacker could execute arbitrary code in the baseband processor, but the target must have cellular radios enabled.

What the attacker needed

Cellular radios enabled

The fix

The vulnerability was fixed in the January 2018 security maintenance release.

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 stack-based buffer overflow happens when a program copies more data into a small memory area than it can hold, so the extra data spills over and can overwrite nearby instructions. Here the phone's cellular modem (the baseband processor) mishandles a network message called an IPCP header, allowing an attacker to send a crafted message that runs their own code on the modem.

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.

More by acez

View all

1 more disclosed report, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.