~/talk

Good Motive but Bad Design: Pitfalls in MPU Usage in Embedded Systems in the Wild

Talkat Black Hat Europe 2022 · 2022-12-05..12-08· [embedded-and-hardware, security]
name:Le Guan
links:none on file
links:none on file
name:Wei Zhou
links:none on file
slides:none on file

Comprehensive audit of popular microcontroller RTOS finds MPU support rare and defaults minimal: only a few OS enable DEP and stack guard, and many leave MPU programmable APIs reachable from unprivileged code. Concrete exploits show MPU disabled via control-flow hijack by calling kernel MPU disable helpers and a FreeRTOS privilege escalation path that flips saved privilege bits on the stack or creates a privileged task via wrapped syscall. Paper includes UART overflow demos, counts region limits (8 or 16), measures context switch/MPU reprogramming overhead, and proposes concrete mitigations like allocating high-number regions for kernel, using per-API syscalls, and exploiting subregions or TrustZone.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 1:00MPU background and concepts
  3. 4:05Current MPU adoption status
  4. 5:29Exploiting MPU vulnerabilities
  5. 9:08Privilege escalation risks
  6. 12:58Exploitation steps and demos
  7. 17:00API vulnerabilities and risks
  8. 22:33Systemic MPU pitfalls
  9. 25:31Mitigation and best practices
  10. 31:02Summary and conclusions
~/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.