~/talk

ret2dir: Deconstructing Kernel Isolation

Talkat Black Hat Europe 2014 · 2014-10-14..10-17· [security]
slides:none on file

ret2dir claims a practical bypass of KERNEXEC/UDEREF and hardware SMEP/SMAP/PXN by exploiting the kernel’s direct‑mapped physical memory region: it maps attacker‑controlled user pages into the kernel fmap alias, discovers their kernel synonyms via /proc/PID/pagemap, forces suitable PFNs by mass page‑faulting and zone depletion, and then overwrites kernel pointers to point at those synonyms to execute code or ROP (example: CVE‑2013‑2094 perf exploit converted). Works across x86/x86_64/AArch32/AArch64 Linux; mitigation proposed is exclusive page‑frame ownership. return-to-direct-mapped memory fmap spraying

AI-written summary · about

  1. 0:00Introduction
  2. 0:17About me
  3. 0:44Agenda
  4. 2:42Kernel Vulnerabilities
  5. 3:23Linux
  6. 6:01Kernel Attack Model
  7. 9:17Why do they work
  8. 10:55Protections
  9. 13:50Summary
  10. 15:00Questions
  11. 16:04Return to Direct Map Memory
  12. 16:57Kernel Space Layout
  13. 19:06Role of Kernel Space Layout
  14. 20:47Properties of the Region
  15. 22:56Threat Model
  16. 24:10Addressaliasing
  17. 24:41Attack
  18. 25:41Location of synonym
  19. 26:16Problems
  20. 27:37How
  21. 30:32Second problem
  22. 31:08How Linux manages physical memory
  23. 32:13How Linux manages page frames
  24. 37:24What if page frames are not available
  25. 37:49Fishmap sprain
  26. 41:06Fishmap signatures
  27. 42:14Vulnerability overview
  28. 43:44Vulnerability data structure
  29. 44:15Static kee
  30. 44:34How to abuse it
  31. 49:23How it works
  32. 50:38What happens if this map is not executable
  33. 53:34How this works
  34. 54:41Demo
  35. 56:17Exploit DB
  36. 57:19Probability of success
  37. 58:25Pagegas
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.