~/talk

The Art of Exploiting UAF by Ret2bpf in Android Kernel

Talkat Black Hat Europe 2021 · 2021-11-08..11-11· [security]
links:none on file
links:none on file
slides:none on file

A ten‑year Use‑After‑Free in xt_qtaguid (CVE‑2021‑0399) yields a real kernel exploit on an Android Pie 4.14 device by freeing a subtag then spraying eventfd and sequence_file objects to leak kernel pointers and hijack sequence operations. The chain builds a free/overwrite primitive, leaks addresses, and invokes arbitrary BPF instructions to bypass ARM64 UAO and gain kernel R/W and root; a working demo targets a Xiaomi Mi 9 and the authors demonstrate a successful privilege escalation. ret2bpf via BPF interpreter

AI-written summary · about

  1. 0:00Introduction to UAF in BPF
  2. 3:54Past vulnerabilities in xt_qtaguid
  3. 6:01Exploiting CVE-2021-0399
  4. 10:13Kernel heap layout manipulation
  5. 13:46Sequence file structure hijacking
  6. 16:56Demo on Xiaomi Mi 9
  7. 17:17Second UAF vulnerability found
  8. 18:39Summary of CVE-2021-0399
  9. 19:00Android kernel mitigations
  10. 25:59Kernel defenses against UAF
  11. 26:43On-device protection features
  12. 28:08Server-side malware analysis
  13. 30:15Behavioral detection of exploits
  14. 31:39Generic Kernel Image benefits
  15. 32:00Acknowledgments and conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.