Galaxy's Meltdown – Exploiting SVE-2020-18610, a write-up
The NPU driver's graph-parsing functions trusted user-supplied offset and count fields from a mapped ION buffer without bounds checks, so an attacker could make internal vector pointers land outside the buffer. This gave an out-of-bounds read/write primitive in kernel space, which the authors then worked to turn into arbitrary address read/write while dealing with Samsung's KNOX and SELinux protections.
github.com
Published on github.com
vngkv123 / articles Public
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 the driver used user-controlled offset and count fields to compute vector pointers without validating that they stayed inside the mapped buffer.
Impact
An attacker with access to the NPU driver could obtain an out-of-bounds read/write in kernel memory, though Samsung's KNOX and SELinux protections limit what can be done with it.
What the attacker needed
Access to the NPU driver; ability to allocate and map an ION buffer
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.
A phone's kernel driver reads a configuration blob that the app supplies. It uses numbers inside that blob as offsets and counts without checking them, so the driver can be tricked into reading or writing memory outside the intended buffer. The write-up then explores how to turn that mistake into stronger control over kernel memory, despite Samsung's extra protections.
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.