~/talk

Understanding TOCTTOU in the Windows Kernel Font Scaler Engine

Talkat Black Hat USA 2014 · 2014-08-02..08-07· [security]
slides:none on file

Finds a concrete TOCTTOU exploitation path in the Windows kernel Font Scaler: kernel code precomputes sizes for CG3/CG4, double‑fetches user buffers, and a first overwrite of CG3 cascades into a CVE-2011-3402 CVT count domino overwrite that corrupts interpreter state; Duqu’s exploit uses thousands of TrueType VM instructions to implement a signature search via a ITP flip trick uses thousands of TrueType VM instructions. Recompiles the engine as FS engine user‑mode recompile to reproduce behavior, and builds a kernel monitoring tool that logs copy_from_user-style accesses and validates the attack; PoC works and Microsoft patches follow.

AI-written summary · about

  1. 0:00Introduction
  2. 1:15Background
  3. 2:38Time of Use
  4. 3:16Why
  5. 4:17How
  6. 10:43State Structure
  7. 13:04Changing Font File
  8. 16:00Changing Character Code
  9. 17:48Executing VM Instructions
  10. 18:48Conclusions
  11. 20:58Questions
  12. 22:49Data Structure
  13. 24:01Memory Allocation
  14. 26:57Advanced Exploit Techniques
  15. 28:48Understanding TOCTTOU
  16. 31:33First Overrated
  17. 34:04Summary
  18. 39:04Drawing a Picture
  19. 39:23FSAC Routine
  20. 39:53BoxBone
  21. 40:45While Loop
  22. 47:04Patch Tuesday
  23. 48:05MAF
  24. 48:47Log
  25. 50:21Precompute
  26. 51:16GDI
  27. 52:14Graph
~/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.