Security Implications of Kernel...
summary
Kernel KFENCE is a low‑overhead, sample‑based allocator instrument that is enabled by default on many distributions and reports >60 bugs in Google's downstream kernels and 12 upstream fixes so far. It bypasses slab protections — losing heap segregation and size/type isolation, skipping KASAN tagging — and exposes a user‑space observable timing side channel from KFENCE’s slow guarded allocations. Exploitation (the fence to pond workflow) is practical: pressure mode at 75% and an effective ~25% free list (≈63 slots) let attackers probabilistically reclaim KFENCE slots as credentials and escalate privileges. Upstream mitigations add MTE boot disabling, crash toggles and free‑list randomization, but full segregation remains unsolved.
AI-written summary · about
chapters (11)
- 0:00Background and threat model
- 1:22Slab and cross-cache attacks
- 4:49Kernel Electric Fence overview
- 9:51KFENCE internals and operation
- 13:28Security analysis of KFENCE
- 17:37Slab Virtual and instrumentation
- 19:21Downstream and miscellaneous issues
- 25:07Latency and side channels
- 31:56Exploitation technique development
- 39:42Empirical results and observations
- 42:08Conclusion and future challenges
