Unburdened By What Has Been: Exploiting New Attack Surfaces in Radio Layer 2 for Baseband RCE on Samsung Exynos
The report describes a chain of vulnerabilities in Samsung Exynos baseband Layer 2 processing, including a logic bug and an out-of-bounds access that together overflow an array of LLC fragment descriptors, and a heap overflow during re-assembly. An attacker could exploit these to achieve remote code execution on the baseband.
labs.taszk.io
Published on labs.taszk.io
2024-07-29 by Daniel Komaromy, Lorant Szabo, Laszlo Szapula Samsung baseband
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a logic error and an out-of-bounds access in the handling of LLC fragment descriptors, combined with a copy-first-check-later mistake in the re-assembly loop, allow a heap overflow.
Impact
An attacker could achieve arbitrary remote code execution on the baseband of Samsung Exynos smartphones.
What the attacker needed
Ability to send crafted radio layer 2 frames; target is a Samsung Exynos baseband
How it was found
- Turn on LLC acknowledged mode by sending SABM for each of the four SNDCP SAPIs.
- Use SAPI 3 to spray the heap for size class 512.
- Use SAPI 5 and 9 to create a checkerboard pattern of allocations.
- Free all LLC frame allocations for SAPI 5 by sending an LLC PDU with index 0.
- Send a malformed RLC data frame to trigger the heap overflow and replace the LLC PDU allocation's heap header's mid field with value 1.
- Use SAPI 11 to re-spray the heap and reclaim the overflowing chunk, then trigger free on SAPI 9 by sending an LLC PDU with index 0.
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 write-up has not been written yet. The Original tab links to the source.
This report is about security bugs in the software that runs a phone's cellular modem (the baseband). The bugs are in how the modem handles small data packets sent over the radio link. By sending specially crafted packets, an attacker could take control of the modem and run their own code.
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.