Kernel heap vulnerabilities

The heap is used for dynamic memory allocation. It resides in the RAM like the stack, but it is slower. The kernel heap is using the following three types of allocators:

  • SLAB: This is a cache-friendly allocator.
  • Simple list of blocks (SLOB): This is an allocator used in small systems. It uses a first-fit algorithm.
  • SLUB: It is the default Linux allocator.

Kernel heap exploits are dangerous because in most cases, the attacker doesn't need to prepare a Linux module debugging environment.

Get Advanced Infrastructure Penetration Testing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.